pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Accessibility: Investigate use of `:focus-visible` for focus states

Open daneah opened this issue 4 years ago • 0 comments

The problem

Focus states provide valuable feedback to keyboard users, low vision users, and more. However, they can be heavy-handed for cases where a user is already actively clicking on an element, as an example.

The solution

Use :focus-visible in judicious ways to make Pharos elements show the focus outline only when necessary.

Alternatives considered

Leaving the focus states as they are could be alright, but it provides unnecessary motion and can draw attention from the task at hand.

Additional information

See this article for a good overview.

daneah avatar Jul 22 '21 00:07 daneah