Decorative elements are not consistently hidden

Automated check presentation-role-conflict, run with axe-core

WCAG
Best practice: a recommendation, not a WCAG success criterion
Severity
Moderate: a degraded experience
Typical effort
Quick win, under 1 hour
Category
Code quality

Who this affects

Screen reader and keyboard users.

Why it matters

An element marked role="presentation" or role="none" that is focusable or has ARIA attributes is still exposed, so the "decorative" element gets announced after all.

How to fix it

Remove tabindex and global ARIA attributes from elements marked as presentational, or drop the presentational role.

Check your own website

The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.

Scan my website — free

Related checks: Code quality

All checks