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 e2f67f5 commit 1b3e02cCopy full SHA for 1b3e02c
src/lib/autocomplete/_autocomplete-theme.scss
@@ -9,7 +9,11 @@
9
color: mat-color($foreground, text);
10
11
.mat-option {
12
- &.mat-selected:not(.mat-active) {
+ // We only want to override the background for selected
13
+ // options if they are *not* in hover or focus state. This
14
+ // change has to be made here because base option styles
15
+ // are shared between the autocomplete and the select.
16
+ &.mat-selected:not(.mat-active):not(:hover) {
17
background: mat-color($background, card);
18
19
}
0 commit comments