WCAG 1.4.12 Text Spacing: how to test a Shopify store

Published 16 November 2026 · Last updated · General information, not legal advice

Some people read more easily when lines, letters and words are further apart. They set that spacing themselves, with a browser extension, a bookmarklet or their own stylesheet. WCAG 1.4.12 Text Spacing, a Level AA success criterion, makes sure a website keeps working when they do.12 On Shopify stores, the parts most likely to break are small, tightly styled elements such as buttons, badges, menus and product cards.

This is general accessibility guidance, not legal advice.

What WCAG 1.4.12 requires

The success criterion says that no loss of content or functionality may occur when a user sets all of the following, and changes no other style property:2

  • Line height (line spacing) to at least 1.5 times the font size.
  • Spacing following paragraphs to at least 2 times the font size.
  • Letter spacing (tracking) to at least 0.12 times the font size.
  • Word spacing to at least 0.16 times the font size.

There is an exception for human languages and scripts that do not use one or more of these properties in written text. They can conform using only the properties that exist for that language and script.2

What it does not require

Two points are often misunderstood. First, your theme does not have to use these values. W3C notes that the requirement is that content and functionality are not lost when a user overrides the authored spacing.1 You can keep your design's own line height and letter spacing.

Second, you do not need to add a spacing control to the store. W3C says the criterion does not require content to implement its own mechanism. Users choose how they apply the change, whether with a user stylesheet, bookmarklet, extension or application.1

The responsibility for readability under the overridden spacing rests with the user. Your job is only to make sure nothing is cut off, hidden or made unusable when they apply it.1

Where Shopify themes usually break

Text spacing problems come from layout code that assumes the text will always take up the same space. When letters and lines get further apart, the same words need more room. If a container cannot grow, the text is clipped or overlaps something else. On a typical store, check these first:

  • Buttons with a fixed height, such as Add to cart, Buy it now and newsletter Subscribe buttons, where the label wraps and the second line disappears.
  • Announcement bars and sale badges with a set height and overflow: hidden.
  • Navigation menus and mega menus where items overlap when they wrap.
  • Product cards that cut titles to two lines with a fixed height. With wider spacing, part of the product name can vanish.
  • Tabs, accordions and size-chart tables with fixed row or panel heights.
  • Text placed over images in slideshows and image banners, where the text box is sized to the image.
  • App widgets such as reviews, chat launchers and pop-ups, which bring their own CSS.

A ten-minute test

  1. Apply the four spacing values to the page. A text spacing bookmarklet or browser extension can do it in one click; so can a short user stylesheet that sets line-height: 1.5 !important; letter-spacing: 0.12em !important; word-spacing: 0.16em !important; on all elements and margin-bottom: 2em !important; on paragraphs.
  2. Look at the home page, a collection page, a product page, the cart and any pop-up or drawer, on both a wide window and a narrow one.
  3. For each page, look for text that is cut off, text that overlaps other text or controls, and controls that can no longer be used, such as a button whose label is hidden.
  4. Open the menu, the cart drawer and any accordions while the spacing is applied, because hidden content is easy to miss.
  5. Note each failure with the page, the element and a screenshot so it can be fixed in the theme.

This needs a human eye. W3C reminds site owners that tools cannot check all accessibility aspects automatically and that human judgement is required.3

How to fix what you find

Most fixes are small CSS changes in the theme:

  • Replace fixed height on text containers with min-height, so the box can grow.
  • Remove overflow: hidden from containers that hold text, or make sure the container can grow first.
  • Size padding and spacing in em or rem rather than fixed pixel heights, so it scales with the text.
  • Let flex and grid items wrap instead of forcing everything onto one line.
  • Prefer text set in HTML over text baked into images, so it can respond to the user's spacing at all.

Make the changes in the theme's CSS rather than with a one-off script, so they survive theme updates. See how to fix accessibility without breaking your theme. Text spacing sits close to zoom and reflow, so it is worth testing both together; see zoom and reflow on mobile.

Where Jralo fits

Jralo for Shopify, our app, checks your homepage and up to five linked pages against the WCAG 2.2 A and AA rules that automated testing can check, and keeps a dated record of every check; ongoing monitoring are on the paid Site plan.4 Clipped text under user spacing is a visual problem that automated checks do not always catch, so keep the short manual test above. You can install Jralo from the Shopify App Store; it is free to install. Disclosure: Jralo is our own product, made by Misimi Corp.

What else do people ask?

Does my theme have to use 1.5 line height to meet WCAG 1.4.12?

No. W3C notes that content is not required to use these text spacing values. The requirement is that when a user overrides the authored spacing with those values, no content or functionality is lost.

What usually fails text spacing on a Shopify store?

Elements with a fixed height or hidden overflow: buttons, badges, announcement bars, menu items, tabs and product cards where the title is cut to a set number of lines. When the spacing grows, the text is clipped or overlaps nearby content.

Do I need to add a text spacing control to my store?

No. W3C says the success criterion does not require content to provide its own mechanism for adjusting spacing. Users apply their own settings with a user stylesheet, bookmarklet, extension or application.

How can Jralo help?

Jralo checks Shopify stores and other sites against the WCAG 2.2 A and AA rules that automated testing can check, and keeps a dated record of every check. Clipped text under user spacing is a visual problem, so keep the short manual test in this guide as well.

Check your site now

Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.

Run the free check

Where do these facts come from?

Every number and legal statement in this post links to one of these sources, read on 16 November 2026.

  1. W3C: Understanding WCAG 2.2, Success Criterion 1.4.12 Text Spacing
  2. W3C: Web Content Accessibility Guidelines (WCAG) 2.2, Success Criterion 1.4.12
  3. W3C WAI: Selecting Web Accessibility Evaluation Tools
  4. Shopify App Store: Jralo listing

More questions

What should you read next?