|
17 | 17 | @include mdc-list.deprecated-item-disabled-text-color(
|
18 | 18 | mdc-list.$deprecated-text-disabled-color, $query: mdc-helpers.$mat-theme-styles-query);
|
19 | 19 |
|
20 |
| - &:hover:not(.mdc-list-item--disabled), |
21 |
| - &:focus:not(.mdc-list-item--disabled), |
| 20 | + &:hover:not(.mdc-deprecated-list-item--disabled), |
| 21 | + &:focus:not(.mdc-deprecated-list-item--disabled), |
22 | 22 | &.mat-mdc-option-active,
|
23 | 23 |
|
24 | 24 | // In multiple mode there is a checkbox to show that the option is selected.
|
25 |
| - &.mdc-list-item--selected:not(.mat-mdc-option-multiple):not(.mdc-list-item--disabled) { |
26 |
| - $color: mdc-theme-color.$on-surface; |
27 |
| - background: rgba($color, mdc-ripple.states-opacity($color, hover)); |
| 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 | + } |
28 | 30 | }
|
29 | 31 | }
|
30 | 32 |
|
31 |
| - .mat-primary .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) { |
32 |
| - @include mdc-list.deprecated-item-primary-text-ink-color( |
33 |
| - primary, $query: mdc-helpers.$mat-theme-styles-query); |
| 33 | + .mat-primary { |
| 34 | + .mat-mdc-option.mdc-deprecated-list-item--selected:not(.mdc-deprecated-list-item--disabled) { |
| 35 | + @include mdc-list.deprecated-item-primary-text-ink-color( |
| 36 | + primary, $query: mdc-helpers.$mat-theme-styles-query); |
| 37 | + } |
34 | 38 | }
|
35 | 39 |
|
36 |
| - .mat-accent .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) { |
37 |
| - @include mdc-list.deprecated-item-primary-text-ink-color( |
38 |
| - secondary, $query: mdc-helpers.$mat-theme-styles-query); |
| 40 | + .mat-accent { |
| 41 | + .mat-mdc-option.mdc-deprecated-list-item--selected:not(.mdc-deprecated-list-item--disabled) { |
| 42 | + @include mdc-list.deprecated-item-primary-text-ink-color( |
| 43 | + secondary, $query: mdc-helpers.$mat-theme-styles-query); |
| 44 | + } |
39 | 45 | }
|
40 | 46 |
|
41 |
| - .mat-warn .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) { |
42 |
| - @include mdc-list.deprecated-item-primary-text-ink-color( |
43 |
| - error, $query: mdc-helpers.$mat-theme-styles-query); |
| 47 | + .mat-warn { |
| 48 | + .mat-mdc-option.mdc-deprecated-list-item--selected:not(.mdc-deprecated-list-item--disabled) { |
| 49 | + @include mdc-list.deprecated-item-primary-text-ink-color( |
| 50 | + error, $query: mdc-helpers.$mat-theme-styles-query); |
| 51 | + } |
44 | 52 | }
|
45 | 53 | }
|
46 | 54 | }
|
|
0 commit comments