mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(select): show focus indicator even with validation errors (#3743)
Fixes #3742
This commit is contained in:
committed by
Jeremy Elbourn
parent
220163e28a
commit
e9647346cc
@@ -14,7 +14,7 @@
|
||||
color: mat-color($primary);
|
||||
}
|
||||
|
||||
.mat-select.ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
.mat-select:not(:focus).ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
color: mat-color($warn);
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
background-color: mat-color($primary);
|
||||
}
|
||||
|
||||
.mat-select.ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
.mat-select:not(:focus).ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
background-color: mat-color($warn);
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@
|
||||
color: mat-color($primary);
|
||||
}
|
||||
|
||||
.mat-select.ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
.mat-select:not(:focus).ng-invalid.ng-touched:not(.mat-select-disabled) & {
|
||||
color: mat-color($warn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user