fix(autocomplete): don't darken select option (#6425)

Scopes the darkening of selected options only to `md-select`.

Fixes #6407.
This commit is contained in:
Kristiyan Kostadinov
2017-08-15 23:48:46 +02:00
committed by Andrew Seguin
parent b5f4caf1fa
commit 67e91a3934
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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 {
+6
View File
@@ -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);