Skip to content
Prev Previous commit
Next Next commit
List-View: reset hover and selected styles to use the gray color sche…
…me. If hover/selected needs to be different override the variables in the theme. See #74215
  • Loading branch information
Stefanie Hein committed Dec 12, 2024
commit e0e43ab869f31ebce8f68b77c21bfee7f51d69f7
8 changes: 5 additions & 3 deletions src/scss/themes/fylr/components/_list-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
// selected
--list-view-selected-row-border-width: 0;
--list-view-selected-row-border-color: transparent;
--list-view-selected-row-background: var(--brand-color, #{$list-view-selected-row-background});
--list-view-selected-row-background: #{$list-view-selected-row-background};
// hover
--list-view-hover-row-background: var(--brand-color, #{$list-view-hover-row-background});
--list-view-hover-row-background: #{$list-view-hover-row-background};


min-height: 0;
Expand Down Expand Up @@ -169,7 +169,9 @@
cursor: default;

// be careful to apply a default select state, it's probably best to do this contextually in the theme
&.cui-selected {
&.cui-selected,
&.cui-selected:hover,
&.cui-selected:focus {
> .cui-lv-tr {
box-shadow: inset 0 0 0 var(--list-view-selected-row-border-width) var(--list-view-selected-row-border-color);
background-color: var(--list-view-selected-row-background);
Expand Down