Skip to content

Buttons and links without names

Some buttons and links on the page have no accessible name (an icon with no label), or their text only makes sense next to what’s around them (“Read more”, “Click here”).

Why it matters

An icon button with no name is announced as just “button”. People can’t tell the cart from the search or the menu.

Screen reader users often list a page’s links. A list of “Read more”, “Read more”, “Read more” tells them nothing.

How to fix it

  1. Give every button and link text, or an aria-label when it’s only an icon:
    <button type="button" aria-label="Open cart">…icon…</button>
  2. Say where each link goes: “Read more about linen care” rather than “Read more”.
  3. If the design needs the short text, keep it and add the rest for screen readers with visually hidden text.
  4. Give iframes a title that says what they contain.
On Shopify
  1. Icon buttons in the header (cart, search, account) are in your theme’s header section; most themes have visually hidden labels you can turn on or edit.

Common mistakes

  • An aria-label that doesn’t include the visible text, so voice control users can’t say what they see.
  • Several links with the same text going to different places.

Check your fix

Once the change is live, check the page again.