Certain ARIA roles must be contained by particular parents
How to fix the aria-required-parent accessibility rule. ARIA.
What this rule checks
Ensure elements with an ARIA role that require parent roles are contained by them
Who is affected
An ARIA role must sit inside a specific parent role (e.g. a tab inside a tablist).
How to fix it
Wrap it in the required parent role.
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-parent (the makers of axe-core, the engine our scanner uses)
- All fix guides