Skip to content

Commit

Permalink
fix(autocomplete): don't darken select option (#6425)
Browse files Browse the repository at this point in the history
Scopes the darkening of selected options only to `md-select`.

Fixes #6407.
  • Loading branch information
crisbeto authored and andrewseguin committed Aug 15, 2017
1 parent b5f4caf commit 67e91a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/option/_option-theme.scss
Expand Up @@ -30,7 +30,7 @@

// In multiple mode there is a checkbox to show that the option is selected.
&.mat-selected:not(.mat-option-multiple) {
background: mat-color($background, hover, 0.12);
background: mat-color($background, hover);
}

&.mat-active {
Expand Down
6 changes: 6 additions & 0 deletions src/lib/select/_select-theme.scss
Expand Up @@ -52,6 +52,12 @@
color: mat-color($foreground, text);
}

.mat-select-panel {
.mat-option.mat-selected:not(.mat-option-multiple) {
background: mat-color($background, hover, 0.12);
}
}

.mat-select:focus:not(.mat-select-disabled) {
&.mat-primary {
@include _mat-select-inner-content-theme($primary);
Expand Down

0 comments on commit 67e91a3

Please sign in to comment.