-
Notifications
You must be signed in to change notification settings - Fork 117
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
ui v2: checkbox #686
ui v2: checkbox #686
Conversation
9bbd2e6
to
691da03
Compare
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
@@ -1,4 +1,6 @@ | |||
import React from "react"; |
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.
notice the name prop doesn't appear in storybook unless the import is like this
import React from "react"; | |
import * as React from "react"; |
props => ({ | ||
border: props["data-disabled"] ? "1px solid #e7e7ea" : "1px solid #6e7083", | ||
}) |
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.
this could be styled from the parent without having to plumb props. IMO it's cleaner but we haven't written a style guide or made firm decisions here so it can be left as-is.
how will we render the 16px variant? |
was thinking we could pass a size prop to the checkbox and toggle the width/height? would also have to make sure the icon adjusts accordingly. will add a to-do and follow up on that |
Description
PR
design is restyling the checkbox, so for now, added the design for what's highlighted in the dotted border.
Testing Performed
storybook