ARIA attributes must not be prohibited for the element's role

aria/aria-prohibited-attr · WCAG 4.1.2 · Level A

ARIA attributes must not be prohibited for the element's role.

Some ARIA roles prohibit certain attributes. For example, roles like 'none', 'presentation', 'generic', and text-level roles (code, emphasis, strong) prohibit aria-label and aria-labelledby because naming is not supported for these roles. Remove the prohibited attributes or change the role.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0