A Practical Guide to Focus Appearance
How visible the keyboard focus indicator is, including its size and contrast against the background.
On this page
Where most projects go wrong
The usual mistakes:
- outline: none with no replacement
- Focus styles that blend into the background
- Indicators hidden by overflow
- Different focus styles per component
What good looks like instead
- Design a focus style that meets contrast requirements
- Use :focus-visible for keyboard users
- Test focus on every interactive element
- Check focus against all backgrounds
- Keep indicators consistent across components
Why it matters
A faint focus ring makes keyboard navigation impossible to follow, even when focus order is correct.
The specs that matter
| Measure | Figure |
|---|---|
| Focus Visible | WCAG requires a visible focus indicator at Level AA |
| Focus Appearance | WCAG 2.2 adds specific size and contrast requirements at Level AAA |
| focus-visible | CSS can show indicators for keyboard users specifically |
| Default styles | browser defaults are often removed by resets |
Knowing when to hand it over
Tip: Bring in help when keyboard users cannot see where they are.
Where this comes from
- W3C Web Accessibility Initiative — Understanding Success Criterion 2.4.13 Focus Appearance
- MDN Web Docs — :focus-visible
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.