-
Notifications
You must be signed in to change notification settings - Fork 13
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
Destructure css and classname to Checkbox/Radio wrapper components #55
Conversation
Deploy preview for lightspeed-flame ready! Built with commit 3c4820d |
display: -webkit-inline-box; | ||
display: -webkit-inline-flex; | ||
display: -ms-inline-flexbox; | ||
display: inline-flex; |
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.
Why has this changed to inline-flex
?
@@ -29,7 +29,7 @@ const FormHelper: React.FC<FormHelperProps> = ({ status, children, ...restProps | |||
|
|||
export type BaseLabelProps = React.HTMLAttributes<HTMLLabelElement> & TextProps & { css?: any }; | |||
const BaseLabel = styled(Text)<BaseLabelProps>` | |||
display: flex; | |||
display: inline-flex; |
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.
Oh, because of here. But why was this done as part of this PR?
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.
Labels should be inlined, not block by default.
This is to match up with regular styling.
|
||
.zIndex-2 { | ||
z-index: 2; | ||
} |
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.
😄
Also should we rename the PR subject to include only Radio and Checkbox? |
I've added comments on the Percy build regarding visual changes (all related to |
I would actually scope out the |
I'll remove the inline flex thing. causes too many regressions |
Description
CSS prop and className prop was not getting forwarded to the right component.
This PR will now ship the right props to the right components.
How to test?
yarn dev
Checklist