Number Card and Form Component Updates #37
Reference in New Issue
Block a user
Delete Branch "adilallo/component/NumberedCardUpdate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Update form components to match Figma design system
Overview
This PR updates multiple form components (RadioButton, RadioGroup, Checkbox, CheckboxGroup, SelectInput, TextInput, and NumberCard) to align with the Figma design system. All components now support both standard and inverse modes, with consistent styling for default, hover, focus, selected, and disabled states. The updates ensure visual consistency across all form elements and improve accessibility.
Changes
RadioButton Component
:hover,:focus) instead of state-based logicRadioGroup Component
subtextfield in radio options (similar to CheckboxGroup)Checkbox Component
CheckboxGroup Component
SelectInput Component
TextInput Component
NumberCard Component
Component Preview Page
Storybook Stories
Screenshots
How to Test
Run Storybook:
npm run storybookRun Component Preview:
npm run devand navigate to/components-previewKeyboard Navigation:
Accessibility:
npm test -- --testPathPattern=accessibilityVisual Regression:
npm run test:e2eNotes
:hover,:focus) for cleaner, more maintainable code