Skip to content

fix(docsite): extend article body readability to changelog, blog, component pages#3179

Merged
ernestt merged 1 commit into
mainfrom
fix/docsite-body-readability-more-pages
Jun 26, 2026
Merged

fix(docsite): extend article body readability to changelog, blog, component pages#3179
ernestt merged 1 commit into
mainfrom
fix/docsite-body-readability-more-pages

Conversation

@ernestt

@ernestt ernestt commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

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: 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 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.

Changes

  • ChangelogView.tsx — override on the Section. Release notes render via Markdown, which already emits semantic <p>.
  • BlogArticle.tsx — override on the Section. Post body renders via Markdown.
  • ComponentDetailClient.tsx — override scoped to the Overview prose only (OverviewContent's VStack), not the page Section, so the dense Properties props table keeps its compact body size. Live previews are isolated inside ComponentPreviewTheme (a nested Theme that re-declares the type-scale tokens), so the override never leaks into them.

No ProseBlock-style change is needed on these pages — Markdown already 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).
  • Titles (display-1) and subtitles (large) are unchanged on all three pages.

Made with Cursor

…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>
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
astryx Ignored Ignored Jun 26, 2026 6:11pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit 96be536
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

@ernestt ernestt merged commit 4b92876 into main Jun 26, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants