Skip to content

Commit

Permalink
fix(select): set color for selected option
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Jul 29, 2024
1 parent 65d788d commit 80c5964
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,19 @@ $select-padding-right: $select-caret-size + ($select-base-padding * 2);
opacity: 1;
}

&.active,
&:hover {
&[data-selectable]:not(.selected):hover,
&.active:not(.selected) {
background-color: var(--ods-color-primary-100);
}

&.selected {
background-color: var(--ods-color-primary-200);

&:not([data-selectable]) {
background: var(--ods-color-neutral-200);
color: var(--ods-color-primary-000);
}
}
}

.optgroup {
Expand Down

0 comments on commit 80c5964

Please sign in to comment.