Certain ARIA roles must contain particular children
How to fix the aria-required-children accessibility rule. ARIA.
What this rule checks
Ensure elements with an ARIA role that require child roles contain them
Who is affected
An ARIA role needs specific children (e.g. a list role needs listitems), and they are missing.
How to fix it
Add the required child roles, or use native HTML elements instead.
WCAG success criteria
When this rule fails, the page fails:
- 1.3.1 Info and Relationships (Level A, WCAG 2.0, 2.1, 2.2)
Find it on your own page
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.
More detail
- Deque University’s reference for aria-required-children (the makers of axe-core, the engine our scanner uses)
- All fix guides