Skip to content

Commit 91bf499

Browse files
Barsnesmimarz
andauthored
style(Table): background colors on th (#3190)
Co-authored-by: Michael Marszalek <[email protected]>
1 parent 72acce3 commit 91bf499

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/stale-flowers-count.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@digdir/designsystemet-css": patch
3+
---
4+
5+
**Table**: Use correct background color variables on th

packages/css/src/table.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
--dsc-table-divider-border-color: var(--dsc-table-border-color);
1111
--dsc-table-divider-border-style: solid;
1212
--dsc-table-divider-border-width: calc(var(--ds-border-width-default) + 1px);
13-
--dsc-table-header-background--hover: var(--ds-color-surface-tinted);
14-
--dsc-table-header-background--sorted: var(--ds-color-background-tinted);
15-
--dsc-table-header-background--sticky: var(--ds-color-background-default);
13+
--dsc-table-header-background--hover: var(--ds-color-surface-hover);
14+
--dsc-table-header-background--sorted: var(--ds-color-surface-tinted);
15+
--dsc-table-header-background--sticky: var(--ds-color-surface-default);
1616
--dsc-table-header-background: transparent;
1717
--dsc-table-padding: var(--ds-size-2) var(--ds-size-3);
1818
--dsc-table-sort-size: var(--ds-size-6);
@@ -196,7 +196,7 @@
196196
background: var(--dsc-table-background--hover);
197197
}
198198

199-
& > thead > tr > [aria-sort]:hover {
199+
& > thead > tr > [aria-sort]:hover button {
200200
background: var(--dsc-table-header-background--hover);
201201
}
202202
}

0 commit comments

Comments
 (0)