Structure
Text spacing is locked with !important
WCAG 2.2 success criterion 1.4.12 Text Spacing (Level AA)
- WCAG 2.2
- 1.4.12 Text Spacing
- Level
- AA
- Default severity
- Needs review
- Available in
- Free
Updated for Lumtera 1.3.0 and Lumtera Pro 1.2.0.
Why does it matter?
WCAG 1.4.12 asks that people can widen line, letter and word spacing without losing anything; an inline style with !important overrides the style sheets reading tools add, so they cannot widen this spacing.
Who it affects: Screen reader users, who rely on real lists and paragraphs to hear how content is grouped and how many items there are.
What does Lumtera flag?
Inline styles that set line, letter or word spacing with !important. For review.
Check ID text-spacing-locked — use it to filter the content report or with wp lumtera issues --rule.
How do I fix it in WordPress?
Remove !important from the style, or set the value in a style sheet instead of on the element. In a builder, look for a custom CSS or typography field on this element.
Example
<p style="line-height: 1.2 !important">Opening times</p>
<p style="line-height: 1.5">Opening times</p>
How do I check the fix?
- Update the post. The issue disappears from the Lumtera Accessibility sidebar on the next check, and from the site report on the next scan.
- With a screen reader, move to the list. It should announce "list, 3 items" (or similar) before the first item.
Find this issue across your whole site
Lumtera runs this check in the block editor sidebar as you write, in the Elementor panel, in Review mode on the live page, and across the whole site in the content report and with wp lumtera scan. You can change its severity or turn it off in Lumtera → Settings.
Related checks
-
WCAG 1.3.1 · ATip
Text is formatted as a list by hand
-
WCAG 1.3.1 · ANeeds review
List item is outside a list
-
WCAG 1.3.1 · ATip
Empty paragraphs used for spacing
-
WCAG 1.3.1 · ATip
Emoji used as bullets or icons
-
WCAG 2.2.1 · AError
Page refreshes or redirects on a timer
-
WCAG 1.3.3 · ATip
Instruction may rely on shape, position, color or sound
Start with the free plugin today
All 88 content checks and 38 whole-page checks, fixes you approve with undo, and the site report — free, with no account and no page limits.