Skip to content

Commit 686dada

Browse files
committed
fix(material-experimental/mdc-tabs): missing focus indication in high contrast mode
Fixes the MDC-based tabs not having focus indication in high contrast mode.
1 parent 0f6cd05 commit 686dada

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material-experimental/mdc-tabs/_tabs-common.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ $mat-tab-animation-duration: 500ms !default;
4646
.mdc-tab__ripple::before {
4747
opacity: map-get($mdc-ripple-dark-ink-opacities, focus);
4848
}
49+
50+
// The usual focus indication is color-based so it won't show up in
51+
// high contrast mode. Add an outline which is a bit more visible.
52+
@include cdk-high-contrast {
53+
outline: dotted 2px;
54+
}
4955
}
5056

5157
.mat-ripple-element {

0 commit comments

Comments
 (0)