Skip to content

Commit

Permalink
fix(tabs): disable focus overlay for touch focus (#12249)
Browse files Browse the repository at this point in the history
Doesn't show the tab's focus indication if it was focused by anything, other than keyboard or programmatically.

Fixes #12247.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 23, 2018
1 parent 2a49532 commit 1b19b93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/tabs/_tabs-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@
@mixin _mat-tab-label-focus($tab-focus-color) {
.mat-tab-label,
.mat-tab-link {
&.cdk-focused:not(.cdk-mouse-focused):not(.mat-tab-disabled) {
background-color: mat-color($tab-focus-color, lighter, 0.3);
&.cdk-keyboard-focused,
&.cdk-program-focused {
&:not(.mat-tab-disabled) {
background-color: mat-color($tab-focus-color, lighter, 0.3);
}
}
}
}
Expand Down

0 comments on commit 1b19b93

Please sign in to comment.