Skip to main content
HighWCAG 2.4.7 · Level AAOperable

Invisible Keyboard Focus Indicator

Flags elements that override the browser default focus indicator (using outline:none, outline:0, or focus:outline-none) without declaring a visible fallback ring.

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

Who this affects

How to fix it

Problem

<button class="bg-[#111111] text-white focus:outline-none">Complete Purchase</button>

Fixed

<button class="bg-[#111111] text-white focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">Complete Purchase</button>

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