Skip to content

Commit cd8a686

Browse files
committed
feat: make anchors in table header show as defined by UX
1 parent 044a039 commit cd8a686

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/dnb-ui-lib/src/style/themes/anchor.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@import '../core/utilities.scss';
77

8-
@mixin defaultAnchorStyle() {
8+
@mixin defaultAnchorStyle($theme: null) {
99
// make sure we have always `display: inline;` as inline-block is breaking the border-bottom
1010
display: inline;
1111

@@ -30,6 +30,11 @@
3030

3131
text-decoration: none;
3232
border-bottom: 1px solid var(--color-sea-green);
33+
34+
@if $theme == 'highlighted' {
35+
color: var(--color-emerald-green);
36+
border-bottom-color: var(--color-emerald-green);
37+
}
3338
}
3439
@mixin hoverStyle() {
3540
background-color: var(--color-mint-green-50);

packages/dnb-ui-lib/src/style/themes/dnb-theme-ui.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ table th {
211211

212212
background-color: var(--color-mint-green-12);
213213
border-bottom: 1px solid var(--color-mint-green);
214+
215+
a {
216+
@include defaultAnchorStyle('highlighted');
217+
}
214218
}
215219
table td {
216220
padding: 1em;

0 commit comments

Comments
 (0)