New Tool Radar

AI Design Workflows

How to Check That a Focus Indicator Is Thick Enough to See

Check that a focus indicator is at least as thick as a 2-pixel outline with 3 to 1 contrast, because WCAG 2.2 sets a strict appearance bar at AAA.

Schematic with three steps: focus each control, measure the outline thickness, check its contrast against the background.

A focus indicator that is one faint pixel wide is almost invisible, even when it is technically present. WCAG 2.2 added a strict AAA criterion for focus appearance: the indicator must be at least as large as a 2-pixel outline and must contrast 3 to 1 against the colours around it.

Why this needs its own check

WCAG 2.2 success criterion 2.4.13 Focus Appearance, Level AAA, requires the focus indicator to be at least as large as a 2-pixel thick perimeter around the component and to have a contrast ratio of at least 3 to 1 against adjacent colours. It is one of the three AAA criteria added in WCAG 2.2.

What you need before you start

  • The page open in a browser with a keyboard
  • A way to measure pixels on screen, such as a screenshot and an image editor
  • The WebAIM contrast checker or browser developer tools for ratios

Step 1 – Focus each control in turn

Tab through the page and note the focus indicator on each control: links, buttons, inputs, and custom widgets. If any control shows no visible indicator at all, mark it as a failure.

Step 2 – Measure the outline thickness

Take a screenshot of a focused control and measure the indicator in an image editor. An indicator thinner than 2 pixels fails this AAA bar, even if it passes the AA visibility check.

Step 3 – Check the indicator contrast

Measure the contrast between the indicator colour and the adjacent colours it touches, using the same 3 to 1 bar that applies to non-text contrast. A dark blue outline on a dark blue button fails even at 2 pixels thick.

Worked example

Practice check: a fictional Juniper Books account page

The example below is fictional. Juniper Books is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.

Part What it should be As shown Result
Primary button outline 2 px outline, 3 to 1 or better 2 px outline, 4.6 to 1 Pass
Text link outline 2 px outline, 3 to 1 or better 1 px outline, 4.6 to 1 Fail – only 1 px thick
Search input outline 2 px outline, 3 to 1 or better 2 px outline, 3 to 1 or better Pass
Custom toggle outline 2 px outline, 3 to 1 or better 2 px outline, 2.7 to 1 Fail – contrast 2.7 to 1

Only 2 of the 4 checks pass: the primary button and the search input. The two failures are the 1-pixel link outline and the toggle outline at 2.7 to 1 contrast.

What to do when something is wrong

Set a 2-pixel minimum outline on every focusable control and choose an outline colour that clears 3 to 1 against both the control and the page background. Test the custom toggle separately, since custom widgets are where indicators usually fail.

Expected result. We checked the WCAG 2.2 checklist pages listed in Sources. We did not measure a live Juniper Books page. UNTESTED: no screenshot was measured and no contrast tool was run on a real page; the practice table shows the expected result pattern for a page with one thin outline and one low-contrast outline. The 4.6 to 1 and 2.7 to 1 figures are the computed ratios for the practice colours #1976D2 on white and #9E9E9E on white.

Limits

  • This check covers the AAA focus appearance bar only. A page can pass AA focus visibility and still fail this stricter check, which is fine when the target is AA.

Sources

See all