Skip to content

Commit 4a943f1

Browse files
authored
fix(material-experimental/mdc-core): fix broken list option style (#22218)
This was broken by #22157
1 parent 5524942 commit 4a943f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/material-experimental/mdc-core/option/_option-theme.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// stylelint-disable max-line-length
2+
13
@use '@material/theme/theme-color' as mdc-theme-color;
24
@use '@material/theme/theme' as mdc-theme;
35
@use '@material/list' as mdc-list;
@@ -22,11 +24,9 @@
2224
&.mat-mdc-option-active,
2325

2426
// In multiple mode there is a checkbox to show that the option is selected.
25-
&.mdc-deprecated-list-item--selected {
26-
&:not(.mat-mdc-option-multiple):not(.mdc-deprecated-list-item--disabled) {
27-
$color: mdc-theme-color.$on-surface;
28-
background: rgba($color, mdc-ripple.states-opacity($color, hover));
29-
}
27+
&.mdc-deprecated-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-deprecated-list-item--disabled) {
28+
$color: mdc-theme-color.$on-surface;
29+
background: rgba($color, mdc-ripple.states-opacity($color, hover));
3030
}
3131
}
3232

0 commit comments

Comments
 (0)