Skip to content

Commit 35293f5

Browse files
crisbetovictoriaaa234
authored andcommitted
fix(tabs): unable to distinguish disabled tab in high contrast mode (#12160)
Fixes disabled tabs being indistinguishable from enabled ones in high contrast mode.
1 parent f81d97d commit 35293f5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib/tabs/_tabs-common.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ $mat-tab-animation-duration: 500ms !default;
2424
&:not(.mat-tab-disabled) {
2525
opacity: 1;
2626
}
27+
28+
@include cdk-high-contrast {
29+
outline: dotted 2px;
30+
}
2731
}
2832

2933
&.mat-tab-disabled {
3034
cursor: default;
35+
36+
@include cdk-high-contrast {
37+
opacity: 0.5;
38+
}
3139
}
3240

3341
.mat-tab-label-content {
@@ -36,6 +44,10 @@ $mat-tab-animation-duration: 500ms !default;
3644
align-items: center;
3745
white-space: nowrap;
3846
}
47+
48+
@include cdk-high-contrast {
49+
opacity: 1;
50+
}
3951
}
4052

4153
// Mixin styles for the top section of the view; contains the tab labels.

0 commit comments

Comments
 (0)