ARIA & keyboard
Hidden element can still be focused
WCAG 2.2 success criterion 4.1.2 Name, Role, Value (Level A)
- WCAG 2.2
- 4.1.2 Name, Role, Value
- Also maps to
- 2.4.3 Focus Order
- Level
- A
- Default severity
- Error
- Available in
- Free
Updated for Lumtera 1.2.2 and Lumtera Pro 1.1.1.
Why does it matter?
aria-hidden="true" hides content from screen readers but not from the Tab key, so keyboard users land on something that announces nothing.
Who it affects: Screen reader and keyboard users, who depend on ARIA and focus order being correct to understand and operate the page.
What does Lumtera flag?
Links, buttons and form fields that can take keyboard focus inside an aria-hidden element. Focus guards that focus-trap scripts place around dialogs (React Focus Lock, Radix, Headless UI and sentinel links a script on the page uses) are for review, as are slides, drawers, dialogs and menus whose theme CSS may hide them; review mode, which sees what CSS hides, still reports one that is on screen as an error.
Check ID aria-hidden-focusable — use it to filter the content report or with wp lumtera issues --rule.
How do I fix it in WordPress?
Either remove aria-hidden="true", or add tabindex="-1" to every link, button and field inside the hidden element so keyboard focus skips it too.
Example
<div aria-hidden="true"><a href="/sale/">Sale</a></div>
<div aria-hidden="true"><a href="/sale/" tabindex="-1">Sale</a></div>
How do I check the fix?
- Update the post. The issue disappears from the Lumtera Accessibility sidebar on the next check, and from the site report on the next scan.
- Press Tab from the top of the page. Focus should move in reading order and never land on something invisible or silent.
Find this issue across your whole site
Lumtera runs this check in the block editor sidebar as you write, in the Elementor panel, in Review mode on the live page, and across the whole site in the content report and with wp lumtera scan. You can change its severity or turn it off in Lumtera → Settings.
Related checks
-
WCAG 2.4.4 · AError
Link has no text
-
WCAG 4.1.2 · ANeeds review
Link does not go anywhere
-
WCAG 4.1.2 · AError
Button has no text
-
WCAG 4.1.2 · AError
Form field has no label
-
WCAG 4.1.2 · AError
Embedded frame has no title
-
WCAG 4.1.2 · ANeeds review
Embedded frames share the same title
Start with the free plugin today
All 69 content checks and 33 whole-page checks, fixes you approve with undo, and the site report — free, with no account and no page limits.