Skip to content
Pandus

WCAG A/AA requirement Priority: Moderate

Text spacing cannot be adjusted

Some text has its line, letter or word spacing locked with !important in a style attribute, so readers cannot change it with their own settings.

This text was translated automatically and has not been reviewed by a native speaker yet.

Why it matters to your customers

People with dyslexia or low vision often use browser extensions or their own styles to widen spacing. On these elements their settings are ignored, so product descriptions, prices or notices stay hard to read.

Who is affected

  • people with dyslexia
  • people with low vision
  • people with cognitive disabilities

How to fix it

Remove !important from line-height, letter-spacing and word-spacing in inline style attributes, or move this styling into the stylesheet. Then check that nothing is cut off or overlaps when line height is 1.5 times the font size, paragraph spacing 2 times, letter spacing 0.12 times and word spacing 0.16 times.

On Shopify

Usually inline styles from page builders, apps or custom HTML in the theme. Remove !important in the Liquid code or the app or builder settings.

On Shoptet (CZ)

Usually in content pasted into the editor with its formatting. Clear the formatting in the editor; if the style comes from the template, ask Shoptet or a partner.

On PrestaShop

Usually in content from the CMS editor or in module templates. Remove inline !important spacing in the .tpl files or in the edited content.

On WooCommerce

Common with page builders and text pasted from Word or other sites. Set the spacing in the builder's style settings or the theme stylesheet instead of inline.

Fix it with AI

Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.

You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA.

Website: [https://…]

## Problem: Text spacing cannot be adjusted
WCAG 2.2 1.4.12 (AA)

Some text has its line, letter or word spacing locked with !important in a style attribute, so readers cannot change it with their own settings.

**How to fix:** Remove !important from line-height, letter-spacing and word-spacing in inline style attributes, or move this styling into the stylesheet. Then check that nothing is cut off or overlaps when line height is 1.5 times the font size, paragraph spacing 2 times, letter spacing 0.12 times and word spacing 0.16 times.

## Elements found by the automated check
[Paste the HTML of the element here, or the selector from the Pandus report]

## Requirements
- Change only what is needed; keep the design and how the site works.
- Do not add accessibility overlays or widgets; fix the code or the content.
- Show the corrected code and say in which template or file it goes.
- Explain how to check the fix with the keyboard and a screen reader.

Standards

Standards
StandardClause
WCAG 2.2 1.4.12 (AA) Text Spacing
WCAG 2.1 1.4.12 (AA) Text Spacing
EN 301 549 4.1.1 9.1.4.12
EN 301 549 3.2.1 9.1.4.12
ДСТУ EN 301 549 2022 9.1.4.12

Automated check: axe-core rule avoid-inline-spacing. dequeuniversity.com, github.com, www.w3.org

WCAG success criterion

Guides and tools

Help articles

All rules we check