Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/material-experimental/mdc-tabs/_tabs-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ $mat-tab-animation-duration: 500ms !default;
.mdc-tab__ripple::before {
opacity: map-get($mdc-ripple-dark-ink-opacities, focus);
}

// The usual focus indication is color-based so it won't show up in
// high contrast mode. Add an outline which is a bit more visible.
@include cdk-high-contrast {
$outline-width: 2px;
outline: dotted $outline-width;
outline-offset: -$outline-width; // Not supported on IE, but looks better everywhere else.
}
}

.mat-ripple-element {
Expand Down