Skip to content

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

</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