Skip to content
GitHub
Sections

Reference · Things to avoid

Focus removed without replacement

Forbidden
outline: none with nothing in its place
Instead
A :focus-visible rule with a visible indicator built on --color-focus, at --focus-ring-width with --focus-ring-offset. Never remove the outline without replacing it. This locks out every keyboard user, and it is the most common accessibility failure in generated code.

What this rule looks like

Forbidden
Instead
Kind
Rule
Section
Things to avoid
Group
States and interaction
Bucket
mechanical
Severity
error
Detector
focus-removed
Since
v0.1.0

Read as plain text