Skip to content

Commit c9bc909

Browse files
authored
fix(Card): don't require class="ds-link" on links, since that wasn't recommended until recently (#4896)
1 parent 14975a1 commit c9bc909

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/smart-geese-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@digdir/designsystemet-css": patch
3+
---
4+
5+
**Card**: when using a link in a Card, ensure plain `<a>` tags without `class="ds-link"` also get the correct focus styling.

packages/css/src/card.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
& > a {
5454
text-decoration: none;
5555
color: inherit;
56+
@composes ds-focus from './base.css';
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)