Skip to content

Rule · Accessibility

Invalid ARIA role

a11y/aria-roleserrorvoid a11yupdated

Why it matters

Browsers ignore misspelled or invented role values, so the element exposes its native semantics instead of the widget you intended.

How to fix it

Use a valid WAI-ARIA role. Better still, use the native element (button, a, input) that already has the 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.