Skip to content

fix(radio): missing focus indication in high contrast mode #13280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
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
10 changes: 10 additions & 0 deletions src/material/radio/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ $mat-radio-ripple-radius: 20px;
._mat-animation-noopable & {
transition: none;
}

// Note that this creates a square box around the circle, however it's consistent with
// how IE/Edge treat native radio buttons in high contrast mode. We can't turn the border
// into a dotted one, because it's too thick which causes the circles to look off.
@include cdk-high-contrast {
.mat-radio-button.cdk-keyboard-focused & {
outline: dotted 1px;
}
}

}

// The inner circle for the radio, shown when checked.
Expand Down