Form labels and buttons on Shopify themes: how to find and fix issues
Forms and buttons are where shoppers act on a Shopify store: searching, signing up for your newsletter, choosing a size, changing the quantity, adding to cart and contacting you. If a screen reader announces a field as just "edit text" or a button as just "button", the shopper has to guess what it does. This guide covers the most common form and button problems on Shopify themes, how to find them and how to fix them.
What the guidelines say
The Web Content Accessibility Guidelines (WCAG) 2.1 cover forms and buttons in a few places:
- 3.3.2 Labels or Instructions (Level A): fields that need input have labels or instructions.
- 4.1.2 Name, Role, Value (Level A): every control, including buttons, has a name that assistive technology can read.
- 1.3.1 Info and Relationships (Level A): a label that you can see is also connected to its field in the code.
- 3.3.1 Error Identification (Level A): errors are described to the shopper in text.
- 1.3.5 Identify Input Purpose (Level AA): common personal fields such as name and email can be identified, which in practice means using the
autocompleteattribute. - 2.5.3 Label in Name (Level A): a button's accessible name includes the words shown on it, so voice control users can say what they see.
Shopify's own accessibility best practices for themes set the same expectations for theme developers: every form field has a label, labels use for attributes, required inputs use the required attribute, fields use autocomplete, and error messages are clear and announced to screen readers.
Where forms and buttons hide on a Shopify store
Check each of these:
- Header: search field, search button, account icon, cart icon, menu ("hamburger") button.
- Newsletter sign-up: often in the footer and in a pop-up.
- Product page: variant pickers (size, colour), quantity field and its plus and minus buttons, "Add to cart", "Buy it now", and any app-added fields such as gift notes or engraving text.
- Cart and cart drawer: quantity fields, remove buttons, the order note, the discount code field if your theme shows one.
- Contact page and customer account pages.
- Close buttons on pop-ups, drawers and the cookie banner.
The most common problems, and the fixes
1. Placeholder text instead of a label
A field that only shows grey text like "Email address" inside the box has no lasting label. The placeholder disappears when the shopper starts typing, is often low contrast, and isn't treated as a label by every screen reader. Shopify's guidance for theme developers says the same: a placeholder isn't a substitute for a label.
Fix: use a real label element connected to the field. A visible label is best. If the design really needs it hidden, a visually hidden label or an aria-label still gives the field a name. The label's for value must match the field's id exactly, for example for="NewsletterEmail" on the label and id="NewsletterEmail" on an input type="email" with autocomplete="email". A common bug is a for that points at the field's name instead.
2. Icon-only buttons with no name
Search magnifiers, cart bags, close "X" icons and quantity plus and minus buttons are often just an icon. Without a text name, a screen reader announces "button" and nothing else.
Fix: give the button a name. Many themes already include a visually hidden text class; otherwise add aria-label="Close" (or "Search", "Cart", "Increase quantity") on the button. Hide the decorative icon itself with aria-hidden="true" so it isn't read twice.
3. Divs and links pretending to be buttons
If a "button" is actually a <div> with a click handler, it usually can't be reached with the Tab key or pressed with Enter or Space. Use a real <button> for actions (open a drawer, add to cart) and a link <a href> for going to another page.
4. Variant pickers that don't say what's selected
Colour swatches shown only as coloured circles need a text name for each option ("Navy", not just a colour) and need to show which one is selected in a way that isn't colour alone. Many current themes build swatches as radio buttons with labels, which handles this well. Custom swatch apps sometimes don't. See our guide to accessible product images and swatches.
5. Errors that only turn red
"Please enter a valid email" should appear as text next to the field, not just as a red border. Connect it to the field with aria-describedby so screen readers announce it, and keep the shopper's input so they don't have to start again. See WCAG 1.4.1 Use of Color.
6. Missing autocomplete
Adding autocomplete="email", autocomplete="name" and similar values lets browsers fill in details for the shopper, which helps people with memory, motor or cognitive disabilities and saves everyone time.
How to find these issues on your store
- Run an automated check. Missing labels and unnamed buttons are among the issues automated tools detect well. Free browser extensions such as axe DevTools and WAVE, Chrome's Lighthouse audit, or our free Quick check will flag them.
- Tab through every form. Use only the keyboard. Can you reach each field and button, and can you see where focus is? Our 5-minute keyboard test walks through it.
- Listen to one form with a screen reader. Turn on VoiceOver (Mac and iPhone), Narrator (Windows) or TalkBack (Android) and move through your newsletter sign-up and product form. Every field and button should announce a clear name.
- Submit a form with a mistake on purpose and check that the error is described in text.
What you can change without code
Some fixes are settings: many themes let you turn on a visible label for the newsletter block, or change the button text. App-added forms are controlled by the app, so if a review form or pop-up has unlabelled fields, contact the app developer, or switch the app off under App embeds in the theme editor to confirm it's the source. Most label and button-name fixes are small changes in the theme's Liquid files. Make them on a duplicate of your theme, as our theme accessibility guide explains, or ask a developer.
Frequently asked questions
Is checkout covered?
Shopify runs the checkout itself, so your theme changes don't affect it. Focus on the forms in your theme and apps.
Do I need visible labels on every field?
Visible labels are best because they help everyone, including people with memory or cognitive disabilities. Where the design truly can't fit one, such as a search field next to a clearly labelled search button, a hidden label or aria-label still gives the field an accessible name.
Will an automated tool find every form problem?
No. Automated tools only catch part of the issues. They can tell you a field has no label, but not whether the label makes sense or whether an error message is helpful. Test the main forms yourself.
This guide is general information, not legal advice. Following it helps make your store easier to use, but no checklist or tool can promise that a store meets every accessibility requirement or law.