-
Notifications
You must be signed in to change notification settings - Fork 6.8k
High contrast focus indicators conflict with strong focus indicators #24097
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
Comments
It's worth noting that the majority of the HC-specific styles were in place long before the strong focus indicators. |
To resolve this, we need to show one of either the HCM outline or the strong focus indicator when HCM is on and strong focus indicators is opted in. If we want to show just the HCM outline, we should be able to add logic to the strong focus indicator mixin that only applies styles if the HCM class isn't detected on the body. If we want to show just the strong focus indicators, I'm not sure how to do so. We'd have to be able to check within the high contrast mixin if strong focus indicators are enabled, and I'm not sure how to check to see if a mixin has been included. |
…mode Most components have special handling for high contrast mode which can cause double focus indication when strong focus indication is disabled. These changes remove the strong focus indicators if such a case is detected. Fixes angular#24097.
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. |
…mode (angular#24120) Most components have special handling for high contrast mode which can cause double focus indication when strong focus indication is disabled. These changes remove the strong focus indicators if such a case is detected. Fixes angular#24097.
Uh oh!
There was an error while loading. Please reload this page.
Is this a regression?
The previous version in which this bug was not present was
Unsure - will have to look - but I'm fairly certain this is a regression.
Description
I noticed that dedicated focus indicators for Windows HCM have been added to various components (#22145, #22889). Unfortunately, these HCM focus indicators conflict with the existing system-wide strong focus indicators if the user has opted into strong focus indicators. By "conflict", I mean multiple focus indicators render where only one should render.
For example, in the screenshot below, two focus indicators render on a radio button when in HCM with strong focus indicators opted-in.
I'm not sure yet how many components this bug affects, but I wanted to file this sooner rather than later so that we didn't merge in some pending PRs (#22889) until a fix was identified.
Reproduction
I'd share a Stackblitz link, but Stackblitz is being buggy at the moment and so repro steps are a bit more involved.
Steps to reproduce:
mat.strong-focus-indicators
styles to thetheme.scss
file:Expected Behavior
One focus indicator should be present on the checkbox.
Actual Behavior
Two focus indicators were present on the checkbox.
Environment
The text was updated successfully, but these errors were encountered: