Skip to content
Performance & Accessibility

A Practical Guide to Focus Appearance

How visible the keyboard focus indicator is, including its size and contrast against the background.

MediaScaleUp Editorial Team 2 min read 15 views
A Practical Guide to Focus Appearance

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
What to do and what to avoid with focus appearance, side by side
Good practice against the usual mistakes, from the sources listed below.

Why it matters

A faint focus ring makes keyboard navigation impossible to follow, even when focus order is correct.

The specs that matter

Published figures for Focus Appearance
MeasureFigure
Focus VisibleWCAG requires a visible focus indicator at Level AA
Focus AppearanceWCAG 2.2 adds specific size and contrast requirements at Level AAA
focus-visibleCSS can show indicators for keyboard users specifically
Default stylesbrowser 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

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.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Performance & Accessibility