2.4 Navigable · SC 2.4.12

AAA1 min read

Focus Not Obscured (Enhanced)

When a user interface component receives keyboard focus, no part of the component is hidden by author-created content.

In plain language

This is the strictest version of the focus-visibility rule: when something has keyboard focus, no part of it can be hidden behind other content.

Why it matters

The AA-level version of this rule only requires that focus not be completely hidden, so the focused element could still be partly covered. This version closes that gap, and keyboard users always see the whole focused element.

In practice

Fails this criterion

A sticky footer covers the bottom few pixels of a focused button as the page scrolls, partially hiding it.

Meets this criterion

The page adds enough scroll space that a sticky footer or header never overlaps any part of the focused element.

Test it yourself

Tab through the page and watch each focused element as you scroll near sticky headers, footers, or other overlays. If any part of the focused element gets covered, even a small sliver, this criterion is failing.

Read SC 2.4.12 on the official WCAG 2.2 specification ↗