Fix WordPress FSE Theme Footer Text Visibility - WCAG Contrast Issue
Β· 3 min read
While developing a WordPress FSE enterprise theme for a client, I discovered the Footer block text was nearly invisible across multiple Style Variations. This post documents the complete fix process - from WCAG contrast diagnosis to introducing semantic colors and handling global styles override.
TL;DRβ
Problem: FSE theme's contrast color token has conflicting semantics. In light themes, contrast β light gray β base (white), resulting in Footer contrast ratio of only 1.05:1.
Solution:
- Introduce
surfacesemantic color for dark block backgrounds - Delete override styles in
wp_global_styles - Add surface definition to all Style Variations
Result: Contrast ratio improved from 1.05:1 to 15.8:1 (WCAG AAA grade).