Skip to content

feat(Radio): overhaul stories with working controls and add responsive font sizing#27

Merged
garrity-miepub merged 1 commit intomainfrom
feature/radio-update
Jan 29, 2026
Merged

feat(Radio): overhaul stories with working controls and add responsive font sizing#27
garrity-miepub merged 1 commit intomainfrom
feature/radio-update

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

Stories improvements:

  • Replace render functions with args pattern for working Storybook controls
  • Add RadioGroupWithState wrapper to handle internal selection state
  • Add argTypes for name, label, description, error, size, orientation, disabled
  • Hide children, value, onValueChange from controls (handled by wrapper)
  • Add showcase stories: AllSizes, PaymentMethodExample, Controlled
  • Showcase stories have controls disabled since they're demos

Component improvements:

  • Make font sizes scale with size prop (sm/md/lg):
    • sm: text-xs labels, text-[10px] descriptions
    • md: text-sm labels, text-xs descriptions
    • lg: text-base labels, text-sm descriptions
  • Apply responsive sizing to group label, group description, error message
  • Apply responsive sizing to radio label and description
radio-update.mov

…e font sizing

Stories improvements:
- Replace render functions with args pattern for working Storybook controls
- Add RadioGroupWithState wrapper to handle internal selection state
- Add argTypes for name, label, description, error, size, orientation, disabled
- Hide children, value, onValueChange from controls (handled by wrapper)
- Add showcase stories: AllSizes, PaymentMethodExample, Controlled
- Showcase stories have controls disabled since they're demos

Component improvements:
- Make font sizes scale with size prop (sm/md/lg):
  - sm: text-xs labels, text-[10px] descriptions
  - md: text-sm labels, text-xs descriptions
  - lg: text-base labels, text-sm descriptions
- Apply responsive sizing to group label, group description, error message
- Apply responsive sizing to radio label and description
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1ae20a5
Status: ✅  Deploy successful!
Preview URL: https://fbff132e.ui-6d0.pages.dev
Branch Preview URL: https://feature-radio-update.ui-6d0.pages.dev

View logs

@garrity-miepub garrity-miepub marked this pull request as ready for review January 29, 2026 00:52
@garrity-miepub garrity-miepub merged commit 0f4b879 into main Jan 29, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant