Skip to main content
LowWCAG 2.4.7 · Level AAOperable

Focus Indicator Contrast Advisory

Audits focus ring contrast against adjacent background colors.

Rule ID: custom-focus-indicator-quality · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

button:focus { outline: 1px solid #eee; }

Fixed

button:focus { outline: 2px solid #4f46e5; }

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules