Skip to content

Commit

Permalink
fix(autocomplete): show hover style on selected options
Browse files Browse the repository at this point in the history
  • Loading branch information
kara committed May 22, 2017
1 parent e2f67f5 commit 3f344e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/autocomplete/_autocomplete-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3f344e2

Please sign in to comment.