Skip to content

WCAG 2.4.7: Focus visible

In European law this criterion is EN 301 549 clause 9.2.4.7 — chapter 9, the part of the harmonised standard that applies to websites under the European Accessibility Act.

How to test by hand

Automated checks find only some failures of this criterion. These steps cover the rest.

You need

  • Keyboard only
  • Visual inspection
  • Browser developer tools

Steps

  1. Click the address bar, then press Tab through every link, button and field. At each stop, check that you can see which element has focus, for example an outline or highlight.
  2. Stop on a focused element and wait a few seconds without pressing anything. The indicator must stay visible and not fade or disappear.
  3. Tab into text fields and check that a text cursor appears or the text is highlighted; on other controls check for a visible border or similar change.
  4. Where focus seems invisible, inspect the element in developer tools and look for outline or border styles that remove the indicator without a visible replacement.
  5. Check that focus is not taken away by script as soon as an element receives it, leaving no element visibly focused.
Passes when
When you navigate by keyboard, every focused element shows a visible indicator that stays for as long as it has focus.
Fails when
On some elements focus is invisible because the outline was removed, the indicator disappears after a moment, or script moves focus away.

Note: W3C allows the indicator to appear only in one mode of operation, such as when the keyboard is used, so a missing indicator after a mouse click is not by itself a failure; its contrast is covered by 1.4.11.

Steps are based on W3C’s Understanding WCAG 2.2: 2.4.7 Focus visible, which explains the intent, examples and exceptions in full. A manual check by you is a first look, not an audit: it does not make a site conformant and is not a substitute for testing by an experienced auditor with real assistive technology users. How we separate what a machine can and cannot check is explained in our methodology; for a full audit, see the directory of accessibility agencies.

What automation checks

axe-core has no rule for this criterion, so our own browser check a11y-focus-invisible flags a focused element that shows no visible outline or box-shadow. Honest limitation: heuristic — custom focus styles built from other CSS properties can trigger a false positive.

What automation cannot prove

An automated test finds some failures of WCAG 2.4.7; it cannot confirm the criterion is met. Whether the result actually works for people — in context, with real content — is a judgement call that needs a human auditor. Nothing on this page is a statement of conformance or legal advice. The full map of what our scanner covers and where it stops is on what our scanner checks.

Related guides

Does your site pass this check?

Free instant scan. No signup required. WCAG 2.4.7 is one of the criteria it tests.

Scan website