We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c936f commit b3b6fdaCopy full SHA for b3b6fda
src/lib/autocomplete/_autocomplete-theme.scss
@@ -9,7 +9,12 @@
9
color: mat-color($foreground, text);
10
11
.mat-option {
12
- &.mat-selected:not(.mat-active) {
+ // Selected options in autocompletes should not be gray, but we
13
+ // only want to override the background for selected options if
14
+ // they are *not* in hover or focus state. This change has to be
15
+ // made here because base option styles are shared between the
16
+ // autocomplete and the select.
17
+ &.mat-selected:not(.mat-active):not(:hover) {
18
background: mat-color($background, card);
19
20
}
0 commit comments