-
Notifications
You must be signed in to change notification settings - Fork 127
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
Switch component #620
Switch component #620
Conversation
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.
Smooth ✨✨✨
I left a few comments, let me know what you think!
Btw @adekbadek, it would be really great to have you sign the CLA (https://github.com/aragon/aragon-ui/pull/620#issuecomment-542311208) :). |
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.
✔️ ✔️ ✔️
One last thing: I remember a comment from @dizzypaty about the transition being a bit slow? Maybe it has been addressed already, but if not we could try springs.swift
to make it faster maybe?
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.
Looking really good!
I have a few small, super quick things, and some discussion points.
src/components/Switch/README.md
Outdated
|
||
### `onChange` | ||
|
||
- Type: `Function`: `(checked: Boolean) -> *` |
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.
Nice! We should definitely do this for our other argument props :)
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.
LGTM, let's merge!
Add a Switch component and update theme’s control-related colors.
Add a Switch component and update theme’s control-related colors.
Add a Switch component and update theme’s control-related colors.
Fixes https://github.com/aragon/aragon-ui/issues/596
Adds a
Switch
component and updates theme's control-related colors.