Elements with role='presentation' or role='none' must not be focusable or have global ARIA attributes
aria/presentation-role-conflict · WCAG 4.1.2 · Level A
Elements with role='presentation' or role='none' must not be focusable or have global ARIA attributes.
When an element has role='presentation' or role='none', it's marked as decorative and removed from the accessibility tree. However, if the element is focusable or has certain ARIA attributes, the presentation role is ignored and the element remains accessible. This creates confusion. Either remove the presentation role, or remove the focusability/ARIA attributes.
Scan a page or repo for issues like this · All rules
Introduced in @accesslint/core v0.8.0