Overview
Keyboard users must be able to see which element is focused. Removing the browser's default outline without a replacement is a common and serious barrier.
The Problem
This pattern is inaccessible — avoid it.
The Fix
Use this accessible pattern instead.
Step-by-step
Remove any CSS rule that sets outline: none or outline: 0 without a replacement.
Use :focus-visible (not :focus) to target keyboard focus only.
Ensure the focus indicator has at least 3:1 contrast against adjacent colors (WCAG 2.4.11, Level AA).
Test by tabbing through your page — every interactive element should show a clear ring.
Framework Notes
How to apply this fix in your stack.