Skip to content
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

Closed
blackfalcon opened this issue Apr 15, 2021 · 4 comments
Closed

wcss: active halo #69

blackfalcon opened this issue Apr 15, 2021 · 4 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@blackfalcon
Copy link
Member

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.

@blackfalcon blackfalcon added the Type: Bug Bug or Bug fixes label Apr 15, 2021
@blackfalcon
Copy link
Member Author

@geoffrich
Copy link
Contributor

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.

@geoffrich
Copy link
Contributor

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.

@blackfalcon
Copy link
Member Author

This is no longer an issue that needs to be specifically addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants