Skip to content

Commit

Permalink
Merge pull request #2606 from SpareBank1/table-header-selected-color
Browse files Browse the repository at this point in the history
fix(ffe-tables): legger til riktig bakgrunnsfarge på table header og cell, ved selected og pressed
  • Loading branch information
tuva-odegard authored Mar 6, 2025
2 parents eb02ee3 + 946e00c commit 10b8873
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions packages/ffe-tables/less/tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,27 @@
transition: background var(--ffe-transition-duration) var(--ffe-ease);
border-radius: var(--border-radius) var(--border-radius) 0 0;

&-ascending,
&-descending {
&:hover {
background: var(--ffe-color-surface-primary-default-hover);
}

&:active {
background: var(--ffe-color-surface-primary-default-pressed);
}

&:hover {
background: var(--ffe-color-surface-primary-default-hover);
&-ascending,
&-descending {
background: var(--ffe-color-fill-primary-selected);
color: var(--ffe-color-foreground-inverse);

&:hover {
background: var(--ffe-color-fill-primary-selected);
color: var(--ffe-color-foreground-inverse);
}

&:active {
background: var(--ffe-color-fill-primary-pressed);
}
}

@media (hover: hover) and (pointer: fine) {
Expand Down Expand Up @@ -150,6 +164,10 @@
background: var(--ffe-color-surface-primary-default-hover);
}
}

&:active {
background: var(--ffe-color-surface-primary-default-pressed);
}
}

&__tr--expand-open {
Expand Down

0 comments on commit 10b8873

Please sign in to comment.