Skip to content

Commit

Permalink
fix(select): show focus indicator even with validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersonestevo committed Mar 23, 2017
1 parent c524438 commit c0648f4
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 c0648f4

Please sign in to comment.