fix(select): show focus indicator even with validation errors (#3743)

Fixes #3742
This commit is contained in:
Jeferson Estevo
2017-03-27 14:17:34 -03:00
committed by Jeremy Elbourn
parent 220163e28a
commit e9647346cc
+3 -3
View File
@@ -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);
}
}