Skip to content
Performance & Accessibility

A Practical Guide to Text Spacing Overrides

The WCAG requirement that content stays usable when users increase line height, letter spacing and word spacing.

MediaScaleUp Editorial Team 2 min read 16 views
A Practical Guide to Text Spacing Overrides

Why does it matter?

People with dyslexia and low vision adjust spacing, and rigid layouts clip or overlap text when they do.

What are the numbers?

  • Success Criterion 1.4.12 sets specific spacing values content must tolerate
  • Line height must work at 1.5 times the font size
  • Paragraph spacing must work at twice the font size
  • Letter and word spacing must work at 0.12 and 0.16 times the font size

What should I do?

  1. Avoid fixed heights on text containers
  2. Allow containers to grow with content
  3. Test with a text spacing bookmarklet
  4. Check buttons and labels as well as body text
  5. Review components with translated text
What to do and what to avoid with text spacing overrides, side by side
Good practice against the usual mistakes, from the sources listed below.

What should I avoid?

Avoid:

  • Fixed-height buttons with centered text
  • Text clipped by overflow hidden
  • Absolute positioning for text blocks
  • Testing only at default spacing

When should I get help?

Short answer Bring in help when layouts break under user style changes.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Performance & Accessibility