-
Notifications
You must be signed in to change notification settings - Fork 5
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
wcss: active halo #69
Comments
This is another weird issue that came up post the updates to WCSS |
The differences with Safari has to do with how the Sass is being generated. It looks like whatever is compiling the Sass is combining the focus-visible declarations in WCSS, presumably because they share a ruleset: .js-focus-visible :focus:not(.focus-visible), :focus:not(:focus-visible) { /* whatever */ } They are separate in the _core.scss stylesheet to prevent browsers that do not support :focus-visible from throwing the whole rule out. With how it's currently minified, Safari will not remove focus styles as expected because it does not support focus-visible. |
The issues like the one with auro-radio are expected. There was an implicit dependency on WCSS removing all focus outlines all the time, so the component never had to worry about removing the default outline. Now that outlines are only removed when focus-visible is loaded (much better for a11y), components need to reset the default focus outline when they declare their own focus styles. For example, see the update I made to auro-button. |
This is no longer an issue that needs to be specifically addressed. |
The scope of this issue is to address, once and for all, the issue related to accessibility and an active halo.
The position of Auro is to use focus-visible, but there have been recent updates that are causing inconsistent issues with the active state and the halo between elements and experiences in different browsers.
For example, open a dialog window in the Auro site. One in Safari and one in Chrome.
In Safari, there is a halo. In Chrome, there is not.
The text was updated successfully, but these errors were encountered: