-
Notifications
You must be signed in to change notification settings - Fork 0
Labels
phase / review-neededThis issue is done and needs reviewThis issue is done and needs reviewtype / featureNew feature or requestNew feature or request
Milestone
Description
Description: The Counter Field component allows users to increment or decrement a numeric value using plus and minus buttons or by directly inputting the number. This component is commonly used in scenarios like quantity selection, numeric input, or form fields with a minimum and maximum value.
Requirements:
- Component Implementation:
- Implement the
Counter Fieldcomponent in TypeScript. - Utilize SCSS with BEM methodology for styling.
- Integrate design tokens from @geneui/tokens for consistent colors, font sizes, spacing, and button styles.
- Support configuration options such as minimum, maximum values, and step increments.
- Ensure proper accessibility, including keyboard navigation and ARIA attributes.
- Unit Tests:
- Write unit tests using Jest and React Testing Library.
- Ensure test coverage for all props, including rendering of different configurations (min, max, step).
- Test for edge cases such as invalid input values, exceeding limits, and unsupported step values.
- Storybook Stories:
- Create a Storybook story for the Counter Field component.
- Showcase different configurations (e.g., various min/max values, step sizes).
- Create controls for the props so users can interact with the Counter Field component in Storybook.
- Document all props of the public interfaces.
- Figma Design:
Follow the design outlined in the provided Figma link.
Checklist:
- Component is implemented in TypeScript.
- Styling follows SCSS using BEM methodology.
- Design tokens from @geneui/tokens are used for colors, font sizes, spacing, and button styles.
- Unit tests written and cover different states and edge cases.
- Storybook stories created with examples of all props and configuration options.
- Figma design matches the component implementation.
Metadata
Metadata
Assignees
Labels
phase / review-neededThis issue is done and needs reviewThis issue is done and needs reviewtype / featureNew feature or requestNew feature or request