fix(autocomplete): show hover style on selected options (#4724)

This commit is contained in:
Kara
2017-05-30 16:59:53 -07:00
committed by mmalerba
parent 28c936f122
commit b3b6fdad1a
@@ -9,7 +9,12 @@
color: mat-color($foreground, text);
.mat-option {
&.mat-selected:not(.mat-active) {
// Selected options in autocompletes should not be gray, but we
// only want to override the background for selected options if
// they are *not* in hover or focus state. This change has to be
// made here because base option styles are shared between the
// autocomplete and the select.
&.mat-selected:not(.mat-active):not(:hover) {
background: mat-color($background, card);
color: mat-color($foreground, text);
}