Accy

Content hidden from screen readers but reachable by keyboard

WCAG 4.1.2, 1.3.1 (A) · EN 301 549 9.4.1.2

An element with aria-hidden="true" contains elements that can receive focus.

Why it matters

This creates the worst possible combination: a keyboard user tabs into the element, but the screen reader announces nothing. Focus disappears into a hole. It nearly always happens with menus or modals hidden with aria-hidden but not removed from the tab order.

How to fix it

When you hide something, hide it properly: use display:none or the hidden attribute, or add tabindex="-1" to every focusable element inside.

As it is
<div aria-hidden="true">
  <a href="/x">Link reachable with Tab</a>
</div>
As it should be
<div hidden>
  <a href="/x">Link</a>
</div>

Related

Does your shop have this failure?

Check for free, along with the other 54 rules. No sign-up.

No sign-up. We scan one public page and store nothing about you.