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: 3) Create Switch component aligned with design system #2704

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

(SP: 3) Create Switch component aligned with design system #2704

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

Comments

@Mav-Ivan
Copy link
Contributor

Description:

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

Figma

Requirements:

  • Styles:

    • Follow design system variables for colors, typography, padding, and other styles.
    • Ensure hover, focus, active, and disabled states are defined according to the design system.
    • Provide a label for the switch.
  • Props:

    • label: Provide a label for the switch.
    • labelPosition: Supports different positions (bottom, top, end)
    • size: Supports different sizes (sm, md, lg).
    • loading: Disables the switch when true. When loading, the switch shouldn't shrink or change its size compared to its default state
    • disabled: Disables the switch when true.

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
@amoutens amoutens self-assigned this Nov 15, 2024
@amoutens amoutens moved this from Project Backlog to In progress in SpaceToStudy Nov 18, 2024
@amoutens amoutens linked a pull request Nov 21, 2024 that will close this issue
@amoutens amoutens linked a pull request Nov 26, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In progress to Done in SpaceToStudy Nov 28, 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