Skip to content

fix(text): apply explicit size overrides#3648

Merged
cixzhang merged 1 commit into
facebook:mainfrom
ahfoysal:fix/text-size-override
Jul 7, 2026
Merged

fix(text): apply explicit size overrides#3648
cixzhang merged 1 commit into
facebook:mainfrom
ahfoysal:fix/text-size-override

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • apply the documented Text size prop as an explicit font-size override
  • preserve the selected type line-height, weight, and font-family behavior
  • reflect size through themeProps/data-size so theming can target it
  • add regression coverage and a changeset

Fixes #3615.

Tests

  • pnpm vitest run packages/core/src/Text/Text.test.tsx
  • pnpm exec eslint packages/core/src/Text/Text.tsx packages/core/src/Text/text.stylex.ts packages/core/src/Text/Text.test.tsx
  • pnpm exec prettier --check packages/core/src/Text/Text.tsx packages/core/src/Text/text.stylex.ts packages/core/src/Text/Text.test.tsx .changeset/text-size-override.md
  • pnpm check:changesets
  • git diff --check

Note: the commit hook also ran pnpm check:repo.

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

@ahfoysal is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 7, 2026
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 7, 2026 11:53am

Request Review

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. This looks god and is complete with the theming system as well.

@cixzhang
cixzhang enabled auto-merge (squash) July 7, 2026 11:51
@cixzhang
cixzhang merged commit cd0c106 into facebook:main Jul 7, 2026
15 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.

Text accepts a size prop but silently discards it

2 participants