WCAG A/AA requirement Priority: Serious
Some elements use a role that does not exist
Some elements have a role attribute with a misspelled, made-up or abstract value, so assistive technology cannot tell what they are.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen readers may announce a menu, tab, popup or button as plain text, or skip it. Shoppers who rely on them can miss navigation, filters or checkout controls.
Who is affected
- blind customers
- screen reader users
- voice control users
How to fix it
Use only valid ARIA roles from the WAI-ARIA specification, spelled correctly in lowercase, for example role="button", role="navigation" or role="dialog". Do not use abstract roles such as "widget", "landmark" or "input". Better still, use the native HTML element (<button>, <nav>, <dialog>) and remove the role.
On Shopify
Usually in custom theme code or app widgets such as menus, sliders and popups. Fix the role in the theme's Liquid sections or snippets; ask app developers to fix roles their apps add.
On Shoptet (CZ)
Uncommon in standard templates; more likely in custom code or added scripts. Ask Shoptet or a partner to check the template and any custom code.
On PrestaShop
Usually in theme templates or modules such as menus and sliders. Fix the role in the theme's .tpl files or overridden module templates.
On WooCommerce
Usually in themes, page builders or slider and popup plugins. Fix the role in child-theme templates; report plugin markup to the plugin author.
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: Some elements use a role that does not exist WCAG 2.2 4.1.2 (A) Some elements have a role attribute with a misspelled, made-up or abstract value, so assistive technology cannot tell what they are. **How to fix:** Use only valid ARIA roles from the WAI-ARIA specification, spelled correctly in lowercase, for example role="button", role="navigation" or role="dialog". Do not use abstract roles such as "widget", "landmark" or "input". Better still, use the native HTML element (<button>, <nav>, <dialog>) and remove the role. ## 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
| Standard | Clause |
|---|---|
| WCAG 2.2 | 4.1.2 (A) Name, Role, Value |
| WCAG 2.1 | 4.1.2 (A) Name, Role, Value |
| WCAG 2.0 | 4.1.2 (A) Name, Role, Value |
| EN 301 549 4.1.1 | 9.4.1.2 |
| EN 301 549 3.2.1 | 9.4.1.2 |
| Section 508 2017 | E205.4 |
| ДСТУ EN 301 549 2022 | 9.4.1.2 |
Automated check: axe-core rule aria-roles.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.
Related checks
-
Some buttons have no name
WCAG 4.1.2 A
-
The page uses outdated blinking-text markup
WCAG 2.2.2 A
-
Accessibility attributes have wrong values
WCAG 4.1.2 A
-
Some switches and checkboxes have no name
WCAG 4.1.2 A