Skip to content

feat(core): Add xs size variant to Radio#118374

Open
jaydgoss wants to merge 1 commit into
masterfrom
jaygoss/radio-xs-size
Open

feat(core): Add xs size variant to Radio#118374
jaydgoss wants to merge 1 commit into
masterfrom
jaygoss/radio-xs-size

Conversation

@jaydgoss

@jaydgoss jaydgoss commented Jun 24, 2026

Copy link
Copy Markdown
Member

TLDR

Adds an xs size variant to the core Radio component with a 12px outer diameter and a 6px inner dot, alongside the existing sm (20px) and md (24px) sizes.

This new variant is going to be used in the context of an updated version of the project creation flow, the design of which calls for a 12px text label next to a radio button with an outer width of 12px. If I were to use existing sm radio button, it would appear out of proportion with the text label.

Details

The new xs variant is wired through the size prop union and radioConfig. Its 6px inner dot keeps the 1:2 inner-to-outer ratio used by the other sizes. The variant is covered in the snapshot tests across both themes and checked/unchecked states, and documented in the component stories.

The auto-generated Code Connect mapping (radio.figma.tsx) is left unchanged, since its size enum maps to Figma component property values that cannot be added from code.

Add a 12px outer / 6px inner size to the Radio component alongside the existing sm and md variants. The 6px inner keeps the 1:2 inner-to-outer ratio used by the other sizes.

Cover the new variant in the snapshot tests and component docs.
@jaydgoss jaydgoss requested a review from a team as a code owner June 24, 2026 18:12
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-e826fy53o.sentry.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant