mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
b5f4caf1fa
commit
67e91a3934
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user