Skip to content

Add :focus-visible recommendation for tabindex/appearance. #2407

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

Closed
wants to merge 1 commit into from

Conversation

robdodson
Copy link
Contributor

@robdodson robdodson commented Mar 6, 2018

Although the :focus-visible spec says it's up to the UA's heuristic to determine when to match, I wanted to add a note to recommend that :focus-visible not match on mouse-focused elements with tabindex=0 or modified appearance. What do y'all think?

cc @alice @bkardell @tabatkins

@@ -2295,6 +2295,30 @@ The Focus-Indicated Pseudo-class: '':focus-visible''</h3>
apply '':focus-visible''.
</div>

<div class="note">
Note: It is a common practice by UAs to always draw a focus indicator on any
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would replace this with a note about UA stylesheets and :focus as the usual mechanism for showing a focus ring, except in a few cases concerning elements which have their default appearance and exhibit something like the behaviour :focus-visible should emulate.

Then, follow up with a comment about the eventual goal being to recommend UAs use :focus-visible in place of :focus so that the default behaviour will be more nuanced.

@robdodson
Copy link
Contributor Author

I'm going to close this PR while we wordsmith this a bit more.

@robdodson robdodson closed this Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants