Skip to content

Commit

Permalink
fix(select): show focus indicator even with validation errors (#3743)
Browse files Browse the repository at this point in the history
Fixes #3742
  • Loading branch information
jefersonestevo authored and jelbourn committed Mar 27, 2017
1 parent 220163e commit e964734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/select/_select-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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);
}
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit e964734

Please sign in to comment.