← All WCAG & EAA Fix Guides

critical EN 301 549 § 9.4.1.2

button-name: Buttons must have discernible accessible names

Icon-only buttons (cart drawer, search, close modal, carousel arrows) must expose an accessible name via visible text, visually hidden text, or aria-label.

Why this matters for EAA & ADA compliance

Without a name, screen readers announce only 'button'—leaving keyboard and blind shoppers unable to open their cart, close popups, or complete checkout.

Mapped standards: 4.1.2 Name, Role, Value (Level A) • EN 301 549 § 9.4.1.2

Standard HTML Fix

Before (fails button-name):
<button type="button" class="icon-btn"><svg viewBox="0 0 24 24">...</svg></button>
After (accessible source markup):
<button type="button" class="icon-btn" aria-label="Open shopping cart"><svg aria-hidden="true" viewBox="0 0 24 24">...</svg></button>

Shopify Liquid Fix

Before:
<button class="drawer__close">{% render 'icon-close' %}</button>
After:
<button type="button" class="drawer__close" aria-label="{{ 'accessibility.close' | t | default: 'Close cart drawer' }}">{% render 'icon-close' %}</button>

React / Next.js Fix

Before:
<button onClick={onClose}><XIcon /></button>
After:
<button type="button" onClick={onClose} aria-label="Close dialog"><XIcon aria-hidden="true" /></button>

Check your live site for button-name right now

Public HTTPS URL (e.g. https://yourstore.com). Runs headless Chromium + axe-core + overlay detection.
Error: Enter a valid public website URL starting with https://