Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(SP: 5) Create InputField component aligned with design system #2705

Closed
Mav-Ivan opened this issue Nov 15, 2024 · 0 comments · Fixed by #2840
Closed

(SP: 5) Create InputField component aligned with design system #2705

Mav-Ivan opened this issue Nov 15, 2024 · 0 comments · Fixed by #2840
Assignees
Labels

Comments

@Mav-Ivan
Copy link
Contributor

Mav-Ivan commented Nov 15, 2024

Description:

Implement a reusable InputField component that meets the design system standards. This component will be used throughout the application to maintain consistency in input field styles, behavior, and accessibility.

Figma

Requirements:

  • Styles:

    • Follow design system variables for colors, typography, padding, and other styles.
    • Support different variants (large, small, outlined).
    • Ensure hover, focus, active, and disabled states are defined according to the design system.
    • Provide a label for inputField.
  • Props:

    • variant: Defines type (large, small, outlined).
    • label: Provide a label for the inputField.
    • disabled: Disables the inputField when true.
    • value: Provides the value to the component.
    • placeholder: Supports placeholder for component.
    • helperText: Supports helperText in giving user hints or warnings.
    • error: Supports error text and error icon in giving user hints or warnings when true
    • onChange : A callback function to handle input changes.
    • search : adds a search icon when true
    • sx: The sx prop will accept a style object that can be merged with the existing styles.

Don't forget to cover component with tests and add to the storybook

@Mav-Ivan Mav-Ivan added Frontend part feature component design system task related to scss design system labels Nov 15, 2024
@github-project-automation github-project-automation bot moved this to Project Backlog in SpaceToStudy Nov 15, 2024
@PavloButynets PavloButynets self-assigned this Nov 15, 2024
@PavloButynets PavloButynets linked a pull request Nov 21, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Merge request to Done in SpaceToStudy Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants