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:

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