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 1b3e02c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/autocomplete/_autocomplete-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
color: mat-color($foreground, text);

.mat-option {
&.mat-selected:not(.mat-active) {
// 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 1b3e02c

Please sign in to comment.