EN, Change language
Englishالعربية
JO-038

Keyboard focus is visible as the user tabs between components.

The requirement (from the 2022 Guidelines)

Keyboard focus is visible as the user tabs between components.

Why it matters to users

Someone navigating by keyboard needs to see where they are at every moment. When the design hides the focus ring, they press Enter without knowing what it will trigger, and may submit a half-filled form or leave the page by mistake.

How to fix it

Do not remove the focus ring with outline:none; if you restyle it, provide a clearly visible high-contrast replacement via :focus-visible on every link, button and field. Then scan again.

How we measure it

Read the stylesheets: focus states, and outline:none on focusable elements with no replacement (non-focusable selectors such as [tabindex=-1], a:not([href]) and slider lists excluded); the scan never presses Tab.

New in 2022.

Its place in the MODEE guidelines

Related rules

Visible keyboard focus · Jordan JO-038 | xfix