WCAG 4.1.2 · Level A

Aria Allowed Role

What is broken
An element has been given a role it cannot validly take.
Who it affects
Assistive technology is handed contradictory information about the control, so it may be announced wrongly or skipped entirely.
How to fix it
Use a role valid for the underlying element, or change the element.

Check your site for this issue

Free scan — no signup required. Covers WCAG 2.1 AA across 64 rules including this one.

Scan my site →

Automated testing detects roughly a third of WCAG 2.1 success criteria. This rule is detected automatically; issues such as keyboard traps, focus order, and screen-reader flow still require manual review. Not legal advice.