-
Notifications
You must be signed in to change notification settings - Fork 16
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
Added reusable Switch Component according to design systems #2834
Added reusable Switch Component according to design systems #2834
Conversation
Quality Gate passedIssues Measures |
It might be better to move the AppSwitch component to the design-system folder, along with its styles and stories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move component to src/design-system/components
move stories to src/design-system/stories
move test to tests/unit/design-system
Also use aliases ~scss-components
, ~scss
Added switch aligned with design systems
Added optional props that include:
label
labelPosition
size
loading
disabled
default:
checked:
hover:
loading and disabled:
label and label positions:
sizes change (medium by default):
Large:
Small:
Have some problems with disabled hover, please contact my tg @amoutens