UU-sjekken

Fix guides

How to fix: hidden elements can get focus

WCAG 2.2 success criterion 4.1.2 (level A)

Why it matters

Keyboard users land on things screen readers say do not exist.

How to fix

Add tabindex="-1" or remove focusable elements inside aria-hidden="true".

<div aria-hidden="true"><a href="#" tabindex="-1">…</a></div>

Test it yourself

Common mistakes

Check your own site

Find this and other problems on your website in 30 seconds, free.