Keyboard

no-focus-styles

WCAG 2.4.7 Focus Visible Level AA

Who this affects

No focus styling was found. A keyboard user cannot see where they are on the page.

How to fix it

Add a visible :focus-visible style with at least 3:1 contrast against the background. Never remove the outline without replacing it.

How much work is it?

Usually a template or design change. That is a rough guide for planning, not an estimate for your codebase. A single content edit repeated across a template is a template change.

What a person still has to check

Passing this rule does not mean 2.4.7 passes. Automation checks part of the criterion, and the rest is a judgement:

Tab through every control and confirm you can always see which one has focus.

Read 2.4.7 Focus Visible in plain language

Where this check comes from

This is our own check, not an axe rule. We added it because the failure it catches is common and nothing else was catching it.

Find out whether your site does this

A scan checks this rule on every page it visits, and shows you the code and a screenshot of each place it fires.

Scan your site

All rules