Skip to content
English
States are missing41 / 71

Visible keyboard focus

What goes wrong

With the focus outline removed, people using a keyboard cannot see where they are, so the page is unusable without a mouse.

The fix

Draw a clear ring around whatever has keyboard focus, and only for keyboard focus.

Tell your AI

Never remove outlines without a replacement: give every interactive element :focus-visible { outline: none; box-shadow: var(--ds-focus-ring) } (a 3px ring of the accent at 32% opacity) and keep it visible on every background.

  • --ds-focus-ring
Why AI-generated UIs all look the same: 12 rules that fix it

TabFocus: Saveoutline: none