Elements with a role that makes children presentational must not contain focusable content

aria/presentational-children-focusable · WCAG 4.1.2 · Level A

Elements with a role that makes children presentational must not contain focusable content.

Roles like button, checkbox, img, tab, and others make their children presentational — hidden from assistive technologies. If those children are focusable, keyboard users can reach elements that screen reader users cannot perceive. Move focusable content outside the parent or remove the focusability.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0