Skip to content

Rule · Accessibility

ARIA role is missing its required parent

a11y/aria-required-parenterrorvoid a11yupdated

Why it matters

Items like tab or menuitem only make sense inside their container role.

How to fix it

Wrap them in the required parent role.

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.