WCAG A/AA requirement Priority: Serious
Some switches and checkboxes have no name
Some custom toggle controls (checkboxes, switches, radio buttons or menu options built with ARIA roles) have no readable label.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen reader users hear only "checkbox" or "switch" without knowing what it controls: accepting the terms, a newsletter opt-in, a filter or gift wrapping. They may miss a required box at checkout or pick the wrong option.
Who is affected
- blind customers
- screen reader users
- voice control users
How to fix it
Give every element with role="checkbox", "switch", "radio", "menuitemcheckbox" or "menuitemradio" a name: visible text inside it, aria-labelledby pointing to the visible label, or aria-label. Where possible, use a native <input type="checkbox"> or <input type="radio"> with a <label>.
On Shopify
Usually custom filter switches, cookie banners or app widgets (subscriptions, gift options). Add labels in the theme's Liquid snippets; ask app developers to label toggles their apps add.
On Shoptet (CZ)
Usually in add-ons or custom code (cookie banners, filters). Ask the add-on provider, Shoptet or a partner to add labels.
On PrestaShop
Usually in modules such as cookie consent, faceted search or product options. Add labels in overridden module .tpl templates or ask the module developer.
On WooCommerce
Common in cookie consent, filter and product-option plugins and in page-builder toggles. Check the plugin settings for labels; otherwise fix it in a child theme or report it 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 switches and checkboxes have no name WCAG 2.2 4.1.2 (A) Some custom toggle controls (checkboxes, switches, radio buttons or menu options built with ARIA roles) have no readable label. **How to fix:** Give every element with role="checkbox", "switch", "radio", "menuitemcheckbox" or "menuitemradio" a name: visible text inside it, aria-labelledby pointing to the visible label, or aria-label. Where possible, use a native <input type="checkbox"> or <input type="radio"> with a <label>. ## 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-toggle-field-name.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
- Accessible radio buttons and checkboxes
- 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
-
Accessibility attributes are used in the wrong situation
WCAG 4.1.2 A
-
A label-and-value list is built incorrectly
WCAG 1.3.1 A
-
Some embedded files or media have no text description
WCAG 1.1.1 A
-
Some progress bars have no name
WCAG 1.1.1 A