A Contrast Bug the Build Caught
A color that works as a fill can fail as text, and the miss is usually too small to see. Giving words their own shade, and measuring what the browser actually painted, turned a recurring contrast bug into a rule the design system enforces.
The first run of my demo site's accessibility check failed on a red badge at 4.37:1, just under the 4.5:1 WCAG asks of body text. The same miss turned up twice more. How splitting text colors from fill colors fixed it for good, and why checking by eye never would have. read more...
- Accessibility
- Web Platform












