15 most common WCAG violations on ecommerce sites (with fixes)
Ninety-six percent of ecommerce homepages have detectable WCAG failures. That figure comes from the WebAIM Million study and it has not improved meaningfully in five years. After scanning hundreds of stores, the same fifteen violations appear again and again, on Shopify, WooCommerce, Magento and every other platform.
This article covers each violation in order of frequency. For each one you get the WCAG success criterion, why it matters specifically on an ecommerce store, a before and after code example, and a priority rating so you know where to start. For the full criteria reference, see the WCAG 2.1 AA ecommerce checklist. For background on the standard itself, see what WCAG is and how it applies to ecommerce.
All 15 violations are Level A or Level AA, which means they are referenced by the ADA and the European Accessibility Act. Failing them creates legal exposure, not just a bad audit score. See the ecommerce accessibility statistics for 2026 for the enforcement and litigation numbers behind this list.
1. Missing alt text on product images
WCAG 1.1.1 Non-text Content · Level A · Priority: critical
Images without an alt attribute, or with alt containing a filename like product_v3_FINAL.jpg, give screen readers nothing useful to announce. The user hears the filename or the word “image” and has no information about what the product looks like.
For ecommerce, this is the highest-impact violation. Product images are how customers decide what to buy. A blind user navigating a catalog of 500 products with no alt text cannot evaluate a single item. This is the most cited violation in ADA demand letters against online retailers. See the ecommerce accessibility statistics for how often it appears in litigation.
Bad:
<img src="/products/merino-crew-blue.jpg" />
Good:
<img src="/products/merino-crew-blue.jpg" alt="Blue merino wool crew neck sweater, folded flat view" />
For decorative images (background textures, dividers), use alt="" so screen readers skip them entirely. For product variant images that change when a user selects a color, update the alt text dynamically to reflect the selected variant.
2. Low color contrast on text
WCAG 1.4.3 Contrast (Minimum) · Level AA · Priority: critical
Normal text must achieve a contrast ratio of at least 4.5:1 against its background. Large text (18pt or 14pt bold) requires 3:1. UI components and graphical objects that convey information require 3:1 under WCAG 1.4.11.
Ecommerce themes regularly fail this on sale prices styled in a muted red, ghost button labels with thin strokes, placeholder text in checkout fields and footer link colors. These are not edge cases. They are common default styles that ship with themes. Low contrast affects users with low vision, color blindness and anyone reading on a phone in sunlight. See the full color contrast guide for ecommerce for ratio calculators and common failure patterns.
Bad:
/* Light grey on white: contrast ratio ~2.3:1 */
.sale-price {
color: #aaaaaa;
background: #ffffff;
}Good:
/* Dark red on white: contrast ratio ~5.9:1 */
.sale-price {
color: #c0392b;
background: #ffffff;
}3. Missing form labels on checkout fields
WCAG 1.3.1 Info and Relationships · Level A · Priority: critical
Every form field must have a programmatically associated label. Visually placing text near a field is not sufficient. The label element must be linked to its input via a matching for/id pair, or the input must carry an aria-label or aria-labelledby attribute.
Checkout is where this violation does the most damage. When a screen reader user tabs into an unlabeled address field, they hear “edit text” with no indication of what goes there. They cannot complete the purchase. Placeholder text disappears when the user starts typing and is not an acceptable substitute for a label. For a complete treatment, see accessible forms for ecommerce.
Bad:
<div class="field"> <input type="text" placeholder="First name" /> </div>
Good:
<div class="field"> <label for="first-name">First name</label> <input type="text" id="first-name" name="first_name" /> </div>
4. Keyboard-inaccessible dropdown menus
WCAG 2.1.1 Keyboard · Level A · Priority: critical
All functionality must be operable via keyboard. Navigation menus that only open on mouse hover are inaccessible to keyboard users. Mega-menus that trap focus or do not close on Escape leave keyboard users stranded inside a navigation structure they cannot exit.
For ecommerce, this affects category navigation (the primary way users browse products), size and color variant selectors and filter panels. If keyboard users cannot reach product categories, they cannot shop. See keyboard navigation in ecommerce for a full testing guide.
Bad:
/* Dropdown only triggers on mouse hover */
.nav-item:hover .dropdown {
display: block;
}
/* No keyboard equivalent */Good:
<nav>
<button
aria-expanded="false"
aria-controls="women-menu"
id="women-btn"
onclick="toggleMenu()"
onkeydown="handleMenuKey(event)"
>
Women
</button>
<ul id="women-menu" role="menu" aria-labelledby="women-btn" hidden>
<li role="menuitem"><a href="/women/tops">Tops</a></li>
<li role="menuitem"><a href="/women/bottoms">Bottoms</a></li>
</ul>
</nav>The button must toggle on Enter and Space. The menu must close on Escape. Focus must return to the trigger button when the menu closes.
5. Missing skip navigation link
WCAG 2.4.1 Bypass Blocks · Level A · Priority: high
Keyboard users must tab through every link in a navigation menu before reaching the main content on each page. A skip link is a visually hidden anchor that appears on first focus and jumps the user directly to the main content area, bypassing repeated navigation.
Without this, a keyboard user landing on a product page tabs through 30 or 40 navigation links before reaching the product title. On a 100-product catalog browse session, this is not a minor inconvenience. It makes the store unusable. This is one of the simplest fixes on this list.
Bad:
<body>
<header>
<nav><!-- 40 navigation links --></nav>
</header>
<main><!-- product content --></main>
</body>Good:
<body>
<a
href="#main-content"
class="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4
focus:z-50 focus:bg-white focus:text-black focus:px-4 focus:py-2
focus:rounded focus:outline focus:outline-2 focus:outline-black"
>
Skip to main content
</a>
<header>
<nav><!-- navigation links --></nav>
</header>
<main id="main-content"><!-- product content --></main>
</body>6. Auto-playing carousels without pause control
WCAG 2.2.2 Pause, Stop, Hide · Level A · Priority: high
Content that moves automatically for more than five seconds must have a mechanism to pause, stop or hide it. This applies to homepage hero carousels, promotional banner sliders and any animation that starts without user initiation.
Auto-playing carousels create two distinct problems. First, moving content interferes with screen magnification: when a carousel advances, users who are zoomed in lose their reading position. Second, motion distracts users with cognitive disabilities and can trigger vestibular disorders in some users. Most ecommerce homepages have at least one auto-playing carousel.
Bad:
<div class="carousel" data-auto-advance="3000"> <!-- slides, no pause button --> </div>
Good:
<section aria-label="Featured promotions" aria-roledescription="carousel">
<div class="carousel-controls">
<button
aria-label="Pause carousel"
id="carousel-pause"
onclick="toggleCarousel()"
>
Pause
</button>
<button aria-label="Previous slide" onclick="prevSlide()">‹</button>
<button aria-label="Next slide" onclick="nextSlide()">›</button>
</div>
<div class="carousel-slides">
<!-- slides with aria-roledescription="slide" and aria-label -->
</div>
</section>7. Missing focus indicators
WCAG 2.4.7 Focus Visible · Level AA · Priority: critical
Keyboard users must be able to see which element currently has focus. The browser provides a default focus ring (typically a blue outline) but many ecommerce themes remove it with a global CSS reset: * { outline: none; } or :focus { outline: none; }.
When focus is invisible, keyboard users cannot tell where they are on the page. Navigating a 10-step checkout with no visible focus indicator is effectively impossible. Removing the default focus ring to satisfy a designer preference is one of the most damaging accessibility decisions a development team can make. See accessibility testing tools for how to audit this across your checkout flow.
Bad:
/* This kills keyboard navigation sitewide */
* {
outline: none;
}
/* Or scoped to focus state */
:focus {
outline: none;
}Good:
/* Remove outline only for mouse users, preserve for keyboard */
:focus:not(:focus-visible) {
outline: none;
}
:focus-visible {
outline: 2px solid #005fcc;
outline-offset: 2px;
border-radius: 2px;
}The :focus-visible pseudo-class applies only when focus arrived via keyboard, not mouse click, which satisfies both the designer and the accessibility requirement.
8. Empty links and buttons
WCAG 4.1.2 Name, Role, Value and 2.4.4 Link Purpose · Level A · Priority: high
Every interactive element must have an accessible name. Icon buttons without text, links with no text content and icon-only social media links expose no label to assistive technology. Screen readers announce them as “button” or “link” with no additional context.
Ecommerce stores are dense with icon buttons: cart, wishlist, search, account, close modal, carousel controls and social share links. Each one that lacks an accessible name is a potential navigation dead end for a screen reader user. The fix is straightforward and takes minutes per element.
Bad:
<!-- Screen reader announces: "button" --> <button onclick="openCart()"> <svg><!-- cart icon --></svg> </button> <!-- Screen reader announces: "link" --> <a href="https://instagram.com/brand"> <svg><!-- Instagram icon --></svg> </a>
Good:
<!-- Screen reader announces: "Open cart, button" --> <button onclick="openCart()" aria-label="Open cart"> <svg aria-hidden="true" focusable="false"><!-- cart icon --></svg> </button> <!-- Screen reader announces: "Brand on Instagram, link" --> <a href="https://instagram.com/brand" aria-label="Brand on Instagram"> <svg aria-hidden="true" focusable="false"><!-- Instagram icon --></svg> </a>
Add aria-hidden="true" and focusable="false" to the SVG itself so the icon is not announced separately from the button label.
9. Missing language attribute on the HTML element
WCAG 3.1.1 Language of Page · Level A · Priority: high
The lang attribute on the html element tells screen readers which language to use for pronunciation. Without it, the screen reader falls back to its default language, which produces incomprehensible output when the page content differs. For example, a French store without lang="fr" will be read in English pronunciation by a French-language screen reader.
This is the simplest fix on this list. It is a single attribute change. Despite that, it appears on a large number of stores, particularly those built on older theme versions or custom-built platforms where the base template was written without accessibility in mind.
Bad:
<!DOCTYPE html> <html> <head>...</head> <body>...</body> </html>
Good:
<!DOCTYPE html> <html lang="en"> <head>...</head> <body>...</body> </html> <!-- For multilingual stores, update per-page --> <html lang="fr"><!-- French page --> <html lang="de"><!-- German page -->
10. Inaccessible modal dialogs
WCAG 2.4.3 Focus Order and 1.3.1 Info and Relationships · Level A · Priority: critical
When a modal opens, focus must move into the modal. When it closes, focus must return to the element that triggered it. Focus must be trapped inside the modal while it is open (the user should not be able to Tab into content behind it). The modal must be closable via Escape.
Ecommerce stores use modals extensively: cart drawers, size guides, product quick-view, login/register overlays and promotional popups. When these are implemented without proper focus management, keyboard users cannot access the modal content, cannot close it and cannot return to where they were. For Shopify-specific modal issues and fixes, see the dedicated guide.
Bad:
/* Opens visually but focus stays on the trigger */
function openModal() {
document.getElementById('size-guide').style.display = 'block';
// No focus management
}Good:
<div
id="size-guide"
role="dialog"
aria-modal="true"
aria-labelledby="size-guide-title"
tabindex="-1"
hidden
>
<h2 id="size-guide-title">Size guide</h2>
<button
aria-label="Close size guide"
onclick="closeModal()"
>
×
</button>
<!-- modal content -->
</div>
<script>
function openModal() {
const modal = document.getElementById('size-guide');
modal.removeAttribute('hidden');
modal.focus(); // Move focus into the modal
trapFocus(modal); // Constrain Tab/Shift+Tab within modal
}
function closeModal() {
const modal = document.getElementById('size-guide');
modal.setAttribute('hidden', '');
triggerButton.focus(); // Return focus to the trigger
}
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closeModal();
});
</script>11. Missing error identification in forms
WCAG 3.3.1 Error Identification · Level A · Priority: critical
When a form submission fails, errors must be identified in text. It is not sufficient to highlight a field in red or add an error border. The error must be described in a text message that is programmatically associated with the field, so screen reader users understand what went wrong and what they need to correct.
Checkout forms are where this violation is most damaging. A failed payment step with no accessible error message leaves a blind user unable to understand why their order did not go through. They cannot fix a problem they cannot read. This is a direct barrier to revenue, not just a compliance concern.
Bad:
<!-- Red border added via CSS on error. No text explanation. -->
<div class="field error">
<label for="card-number">Card number</label>
<input
type="text"
id="card-number"
class="input-error"
/>
</div>Good:
<div class="field">
<label for="card-number">Card number</label>
<input
type="text"
id="card-number"
aria-describedby="card-number-error"
aria-invalid="true"
/>
<p id="card-number-error" class="error-message" role="alert">
Card number must be 16 digits. Do not include spaces or dashes.
</p>
</div>Use aria-invalid="true" on the field and aria-describedby pointing to the error message element. Add role="alert" to the error paragraph so it is announced immediately when it appears.
12. Non-descriptive link text
WCAG 2.4.4 Link Purpose (In Context) · Level A · Priority: high
Link text must describe the destination or purpose of the link. Screen reader users often navigate by scanning a list of all links on the page. A list containing “click here,” “read more,” “learn more” and “shop now” (without surrounding context) gives no information about where any of those links go.
Ecommerce stores are full of “Shop now” CTAs on promotional banners and “Read more” links on blog previews. When ten banners each say “Shop now,” a screen reader user has no way to distinguish between them. Each link needs unique, descriptive text that works out of context.
Bad:
<!-- Ambiguous in a list of links --> <a href="/sale/womens-knitwear">Shop now</a> <a href="/new-arrivals/mens">Shop now</a> <a href="/collections/accessories">Shop now</a>
Good:
<a href="/sale/womens-knitwear">Shop women's knitwear sale</a> <a href="/new-arrivals/mens">Shop men's new arrivals</a> <a href="/collections/accessories">Shop accessories</a> <!-- Or use visually hidden text to extend short CTAs --> <a href="/sale/womens-knitwear"> Shop now <span class="sr-only">: women's knitwear sale</span> </a>
13. Missing heading hierarchy
WCAG 1.3.1 Info and Relationships · Level A · Priority: high
Headings must follow a logical hierarchy: one h1 per page (the main topic), then h2 for major sections, h3 for subsections and so on. Skipping levels (jumping from h1 to h4) or using heading elements purely for visual styling breaks the document outline that screen reader users rely on to navigate pages efficiently.
Screen reader users navigate by headings the way sighted users scan by visual weight. On a product page with no heading structure, a screen reader user cannot jump to the reviews section or the product specifications without reading through everything. On a category page with 48 products, broken heading structure makes filtering results nearly impossible.
Bad:
<h1>Merino Crew Neck Sweater</h1> <!-- Level skipped: jumps from h1 to h4 --> <h4>Color</h4> <h4>Size</h4> <h4>Customer reviews</h4> <h6>Related products</h6>
Good:
<h1>Merino Crew Neck Sweater</h1> <h2>Product options</h2> <h3>Color</h3> <h3>Size</h3> <h2>Customer reviews</h2> <h2>Related products</h2>
14. Images of text instead of real text
WCAG 1.4.5 Images of Text · Level AA · Priority: medium
Text rendered as an image (a JPG or PNG containing words) cannot be resized without quality loss, cannot be selected, cannot be read by screen readers unless alt text is provided and cannot adapt to user color preferences. The WCAG requirement is that text must be rendered in actual HTML text unless the visual presentation is essential (such as a logotype).
Ecommerce stores frequently use images of text for promotional banners, size charts embedded as PNGs and policy badges. Users with low vision who increase browser font size to 200% find that image-based text does not scale. Users who rely on high-contrast mode cannot adjust colors in image text.
Bad:
<!-- Promotional banner as an image: text is inaccessible -->
<img
src="/banners/summer-sale-30-off.jpg"
alt="Summer sale"
/>
<!-- The "30% off everything this weekend" text in the image
is not conveyed by the alt text -->Good:
<!-- Real HTML text over a background image -->
<section
class="promo-banner"
style="background-image: url('/banners/summer-bg.jpg')"
>
<h2 class="promo-heading">Summer sale</h2>
<p class="promo-detail">30% off everything this weekend</p>
<a href="/sale" class="promo-cta">Shop the sale</a>
</section>15. Inaccessible quantity selectors in cart
WCAG 4.1.2 Name, Role, Value · Level A · Priority: critical
Quantity selectors in the cart (the plus/minus increment buttons and the number input) are frequently built from non-semantic HTML. When the increment and decrement controls are plain div or span elements, keyboard users cannot activate them. When the numeric input has no label, screen reader users do not know what it controls.
This is the last step before checkout. A user who has found a product they want, navigated to the cart and cannot adjust the quantity because the controls are keyboard-inaccessible is blocked from completing a purchase. It is a direct conversion loss on top of a legal violation.
Bad:
<!-- div elements are not keyboard-focusable or activatable --> <div class="qty-control"> <div class="qty-minus" onclick="decrease()">-</div> <input type="text" value="1" /> <div class="qty-plus" onclick="increase()">+</div> </div>
Good:
<div
class="qty-control"
role="group"
aria-label="Quantity for Merino Crew Neck Sweater"
>
<button
type="button"
aria-label="Decrease quantity"
onclick="decrease()"
>
-
</button>
<input
type="number"
id="qty-merino-crew"
name="quantity"
value="1"
min="1"
max="99"
aria-label="Quantity"
/>
<button
type="button"
aria-label="Increase quantity"
onclick="increase()"
>
+
</button>
</div>Use button elements (not div) for the increment and decrement controls. Add an aria-labelthat includes the product name so screen reader users know which item's quantity they are adjusting when multiple cart items are present.
Which violations automated tools catch
Not all 15 violations are equally detectable by automated scanners. This matters for how you divide your testing effort:
| Violation | Automated detection | Also needs manual testing |
|---|---|---|
| Missing alt text | High | Yes (quality of alt text requires human judgment) |
| Low color contrast | High | Yes (dynamic states: hover, focus, disabled) |
| Missing form labels | High | No |
| Keyboard-inaccessible dropdowns | Low | Yes |
| Missing skip link | Medium | Yes (must verify it works and is visible on focus) |
| Auto-playing carousels | Low | Yes |
| Missing focus indicators | Medium | Yes (dynamic states and CSS specificity issues) |
| Empty links and buttons | High | No |
| Missing language attribute | High | No |
| Inaccessible modal dialogs | Low | Yes |
| Missing error identification | Low | Yes |
| Non-descriptive link text | Medium | Yes (context-dependent) |
| Missing heading hierarchy | Medium | Yes (structure review required) |
| Images of text | Low | Yes |
| Inaccessible quantity selectors | Medium | Yes |
For a detailed comparison of automated testing tools, see accessibility testing tools for ecommerce.
Where to start
If you are prioritizing by legal risk, fix the violations on your checkout, cart and account pages first. Those are the pages most cited in ADA demand letters. The critical-priority items on this list (alt text, color contrast, form labels, focus indicators, modal dialogs, error identification and quantity selectors) cover the majority of violations found in litigation.
If you are prioritizing by effort-to-impact ratio, start with the missing language attribute (one line of code), skip link (20 minutes of work), empty buttons (one attribute per element) and missing form labels (structural change, usually a few hours for a full checkout flow).
For platform-specific guidance, see the Shopify accessibility guide. For a full structured checklist, see the WCAG 2.1 AA ecommerce checklist.
Frequently asked questions
Free scan
Find out which of these 15 violations your store has
Complyko scans your checkout, cart and product pages for WCAG 2.1 AA violations. You get a prioritized report covering the issues most likely to generate ADA complaints or EAA enforcement actions, with fix guidance for each one.
Get your free scan