-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
UI: Fix shortcut button focus border to support high contrast #13699
UI: Fix shortcut button focus border to support high contrast #13699
Conversation
Thanks @micahgodbolt! @tooppaaa @domyen @jsomsanith can I get a review? |
Hi @adagar any chance I can get a review for this? |
@shilman sure, I can take a look at this sometime today! |
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.
Thanks @micahgodbolt! Looks good, suggestions below.
Co-authored-by: Dominic Nguyen <dom@hichroma.com>
Had an error preventing builds from working locally, but not sure if I'm doing something wrong. Additionally: How do you activate the high-contrast setting you show in the screenshot above? Is it the windows built-in approach? |
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! Thanks @micahgodbolt @adagar @domyen !!!
Issue: #13373
box shadows are not an accessible way to add focus to a button because shadows are dropped by high contrast mode. Using a pseudo element with border avoids the issue of borders messing with box sizing.