Skip to content

Commit

Permalink
fix(List): Fix background colors in table view
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Dec 20, 2024
1 parent 0d1bd3b commit d4f7aa9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
pointer-events: none;
opacity: 0.5;
}
}

.row {
&.isSelected {
background-color: var(--list-item--background-color--pressed);
}
.row {
&.isSelected {
background-color: var(--list-item--background-color--pressed);
}

&:where(.hasAction) {
cursor: default;
&.hasAction {
cursor: default;

&:not(.isSelected) {
&:hover {
background-color: var(--list-item--background-color--hover);
}
}
&:not(.isSelected) {
&:hover {
background-color: var(--list-item--background-color--hover);
}

&[data-pressed] {
background-color: var(--list-item--background-color--pressed);
&[data-pressed] {
background-color: var(--list-item--background-color--pressed);
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/components/src/components/Table/Table.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

.body {
.row {
&:nth-of-type(odd):not(.footer) {
&:where(:nth-of-type(odd):not(.footer)) {
background-color: var(--table--background-color-accent);
}

Expand Down

0 comments on commit d4f7aa9

Please sign in to comment.