fix(docsite): extend article body readability to changelog, blog, component pages#3179
Merged
Merged
Conversation
…ponent pages Follow-up to #3085, which bumped docs article body text to 16px / 1.75 line-height (and semantic <p>) via DocPageLayout. A few article-style pages have their own Section wrapper and so missed the update. Re-assign the body size/leading tokens (--text-body-size / --text-body-leading) on each page's container, exactly as #3085 did for DocPageLayout. The Markdown root and body-typed Text read these tokens, so the larger/airier body cascades to article prose only; titles (display-1) and subtitles (large) use different tokens and are unaffected. - ChangelogView (What's New): override on the Section — release notes render via Markdown, which already emits semantic <p>. - BlogArticle: override on the Section — post body renders via Markdown. - ComponentDetailClient: override scoped to the Overview prose only (not the page Section), so the dense Properties props table keeps its compact body size. Live previews are isolated inside ComponentPreviewTheme, so the override never leaks into them. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
🚀 Vercel Preview Deployment
|
josephfarina
approved these changes
Jun 26, 2026
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
Follow-up to #3085, which bumped docs article body text to 16px / 1.75 line-height (and semantic
<p>) viaDocPageLayout. A few article-style pages have their ownSectionwrapper and so missed the update: the What's New (changelog) page, blog posts, and component doc pages.This re-assigns the body size/leading tokens (
--text-body-size/--text-body-leading) on each page's container — exactly the mechanism #3085 used forDocPageLayout. TheMarkdownroot and body-typedTextread these tokens, so the larger/airier body cascades to article prose only; titles (display-1) and subtitles (large) use different tokens and are unaffected.Changes
ChangelogView.tsx— override on theSection. Release notes render viaMarkdown, which already emits semantic<p>.BlogArticle.tsx— override on theSection. Post body renders viaMarkdown.ComponentDetailClient.tsx— override scoped to the Overview prose only (OverviewContent'sVStack), not the pageSection, so the dense Properties props table keeps its compact body size. Live previews are isolated insideComponentPreviewTheme(a nestedThemethat re-declares the type-scale tokens), so the override never leaks into them.No
ProseBlock-style change is needed on these pages —Markdownalready renders paragraphs as<p>.Test plan
/changelog— release-notes body is 16px with 1.75 line-height./blog/<slug>— post body is 16px / 1.75./components/<Name>Overview tab — prose body is 16px / 1.75; live previews unchanged./components/<Name>Properties tab — props table body stays compact (unchanged).display-1) and subtitles (large) are unchanged on all three pages.Made with Cursor