WCAG A/AA requirement Priority: Critical
Some buttons have no name
Some buttons have no readable label, for example an icon-only "add to cart", search or menu button.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen reader and voice control users cannot tell which button adds to cart, opens the menu or submits the search. This can stop them from buying at all.
Who is affected
- blind customers
- screen reader users
- voice control users
How to fix it
Give every button a name: visible text, aria-label, or aria-labelledby pointing to visible text. Icon-only buttons need an aria-label such as "Add to cart" or "Close". Do not rely on title attributes or CSS-only icons.
On Shopify
Usually icon buttons in the theme (menu, search, quantity, close) or buttons injected by apps. Add labels in the theme's Liquid snippets; ask app developers to fix buttons their apps add.
On Shoptet (CZ)
Usually icon buttons in the template. Check whether the template has a newer version with labels; otherwise ask Shoptet or a partner to change the template code.
On PrestaShop
Usually icon buttons in the theme or modules (cart, search, menu). Add aria-label in the theme's .tpl templates or overridden module templates.
On WooCommerce
Common in themes, page builders and cart or wishlist plugins. Add labels in the child-theme templates or plugin settings; report plugin buttons without names 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 buttons have no name WCAG 2.2 4.1.2 (A) Some buttons have no readable label, for example an icon-only "add to cart", search or menu button. **How to fix:** Give every button a name: visible text, aria-label, or aria-labelledby pointing to visible text. Icon-only buttons need an aria-label such as "Add to cart" or "Close". Do not rely on title attributes or CSS-only icons. ## 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 button-name.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
- Button vs link: which one to use
- HTML accessibility checker (WCAG 2.2)
- Free WCAG checker for WCAG 2.2 AA
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
-
Hidden elements can still be reached with the keyboard
WCAG 4.1.2 A
-
Some graphics have no text description
WCAG 1.1.1 A
-
Some videos or sounds start playing with audio by themselves
WCAG 1.4.2 A
-
A list item is outside a list
WCAG 1.3.1 A