Form Components #22
Reference in New Issue
Block a user
Delete Branch "adilallo/component/FormComponents"
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?
Forms: Add and standardize new components, stories, a11y, and tests
Overview
This PR introduces a complete suite of form components with consistent styling using Tailwind design tokens, accessibility-compliant behavior, and comprehensive tests. All components are optimized (React.memo, forwardRef, stable callbacks) and disabled states were removed per product direction.
Changes
useIdfix; label/text colors aligned to tokens.menu/menuitem); selection viaaria-current; tests updated to current scope.--color-content-default-secondary; input text color--color-content-default-primary; stories/tests updated.useIdfix.SelectDropdown(role="listbox") andSelectOption(role="option"); focus returns to button after selection; hover/focus states match Input; stories useoptionsprop; unit/integration/a11y tests added.test:sb./formspage.Screenshots
Notes
listbox/option) vs ContextMenu (menu/menuitem).adilallo/component/FormComponentsto Form Components