fix(a11y): use rem-based font-size in markdown.reset.css (WCAG 1.4.4)#3430
Open
bilal-karim wants to merge 1 commit into
Open
fix(a11y): use rem-based font-size in markdown.reset.css (WCAG 1.4.4)#3430bilal-karim wants to merge 1 commit into
bilal-karim wants to merge 1 commit into
Conversation
…wn reset Firefox's text-only zoom does not scale CSS pixel values, so the hardcoded 14px/20px in markdown.reset.css fails WCAG 1.4.4 (Resize Text) for that browser preference. Converting to 0.875rem / 1.4 preserves the visible-at-100% rendering (0.875 * 16 = 14px) while allowing text to scale with user font-size preference and text-only zoom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
font-size: 14px/line-height: 20pxinsrc/markdown.reset.cssto0.875rem/1.4(unitless) so server-rendered markdown text scales with Firefox text-only zoom and user font-size preferences.0.875rem= 14px at the default 16px root, so visible rendering at 100% zoom is identical to today.Audit context
audit-output/issues/1.4.4-markdown-reset-rem.md./render?…server-rendered markdown surfaces.Test plan
/renderand confirm rendered markdown looks unchanged at 100% zoom.chrome://settings/fonts→ set default font size to 24px → confirm rendered markdown scales accordingly.🤖 Generated with Claude Code