Skip to content
Pandus

Recommended practice Priority: Minor

A decorative element is still announced to screen readers

An element marked as decorative (role="presentation" or role="none") also has ARIA attributes or can receive keyboard focus, so some screen readers ignore it and others do not. This is a recommended practice beyond the WCAG 2.2 AA level.

This text was translated automatically and has not been reviewed by a native speaker yet.

Why it matters to your customers

Screen reader users may hear stray, meaningless items or land on an empty stop while pressing Tab, for example on a decorative icon or divider. It is a small annoyance, but extra noise makes browsing products and filling in forms slower.

Who is affected

  • screen reader users
  • keyboard users

How to fix it

If the element is truly decorative, remove global ARIA attributes (such as aria-label or aria-describedby) and any tabindex from it, so it is ignored consistently. If it carries meaning or should be clickable, remove role="presentation" or role="none" and give it a proper role and an accessible name instead. Never put a decorative role on a link, button or form field.

On Shopify

Usually comes from icon snippets or sections in the theme, or from an app. Fix the markup in the theme's snippets or sections (Liquid) or ask the app developer.

On Shoptet (CZ)

Decided by the template or an add-on. Check whether a newer template version fixes it; otherwise ask Shoptet or a partner, or correct your own inserted code.

On PrestaShop

Usually in the theme's .tpl files or a module's templates. Override the template in the theme instead of editing the module directly.

On WooCommerce

Usually comes from the theme, a page builder or a plugin. Fix it in a child theme template or report it to the plugin author, so updates do not undo the fix.

Fix it with AI

Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.

You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA.

Website: [https://…]

## Problem: A decorative element is still announced to screen readers

An element marked as decorative (role="presentation" or role="none") also has ARIA attributes or can receive keyboard focus, so some screen readers ignore it and others do not. This is a recommended practice beyond the WCAG 2.2 AA level.

**How to fix:** If the element is truly decorative, remove global ARIA attributes (such as aria-label or aria-describedby) and any tabindex from it, so it is ignored consistently. If it carries meaning or should be clickable, remove role="presentation" or role="none" and give it a proper role and an accessible name instead. Never put a decorative role on a link, button or form field.

## Elements found by the automated check
[Paste the HTML of the element here, or the selector from the Pandus report]

## Requirements
- Change only what is needed; keep the design and how the site works.
- Do not add accessibility overlays or widgets; fix the code or the content.
- Show the corrected code and say in which template or file it goes.
- Explain how to check the fix with the keyboard and a screen reader.

Standards

Not a WCAG success criterion: a recommended practice that makes the site easier to use.

Automated check: axe-core rule presentation-role-conflict. dequeuniversity.com, github.com

Guides and tools

Help articles

All rules we check