-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(radio): missing focus indication in high contrast mode #13280
Conversation
src/lib/radio/radio.scss
Outdated
// 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-focused & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember we had to use cdk-keyboard-focused
because clicking on the <label>
causes the focus origin to be program.
Isn't this the case here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. I went with .cdk-focused
, because it's what we use for the other focus styling.
4ed68d4
to
9facbda
Compare
9facbda
to
7b1c079
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7b1c079
to
8185145
Compare
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
1 similar comment
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
4b493bc
to
eddc2ed
Compare
eddc2ed
to
7af9fc0
Compare
7af9fc0
to
bb16662
Compare
bb16662
to
6da0133
Compare
…trast mode Along the same lines as angular#13280, but for the MDC component. Adds an outline around the circle when focused in high contrast mode.
Currently we use ripples for focus indication on radio buttons, however they're hidden in high contrast mode. These changes add an outline as a fallback. Also fixes the focus indication showing up for mouse focus.
6da0133
to
e781075
Compare
Along the same lines as #13280, but for the MDC component. Adds an outline around the circle when focused in high contrast mode.
Along the same lines as #13280, but for the MDC component. Adds an outline around the circle when focused in high contrast mode.
Closing in favor of #22145. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently we use ripples for focus indication on radio buttons, however they're hidden in high contrast mode. These changes add an outline as a fallback.
Also fixes the focus indication showing up for mouse focus.