Which WCAG criterion this fails
- Does not meet 4.1.2 Name, Role, Value (Level A)
How to fix it on Shopify
Everything below is done from Online Store > Themes > Edit code. Take a copy of the theme before editing.
- Correct the typo, or delete the role entirely if the native element already conveys the meaning.
- Valid roles are a fixed list — button, link, navigation, main, banner, contentinfo, search, dialog, tab, tablist, tabpanel, alert, status, region, list, listitem, and so on.
- role="card", role="section", role="container" and role="wrapper" are not real roles; those elements need no role at all.
- Search the theme for role=" and check each value against the ARIA spec.
Where this usually lives
Any section or snippet where roles were hand-added, and third-party app blocks
Paths given for Dawn and its derivatives (Sense, Craft, Refresh, Studio). A heavily customised theme may differ; the CSS selector in your scan report points at the exact element.
Code
<!-- Invalid -->
<div role="card">…</div>
<button role="buton">Add to cart</button>
<!-- Valid -->
<div class="card">…</div>
<button>Add to cart</button>How to confirm it is fixed
Re-run the scan. This rule should drop out of the findings entirely. If the instance count falls but does not reach zero, the same defect exists in another template — product cards and quick-view modals are the usual second home for it.
Effort: low. Rule id: aria-roles (axe-core).