-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
refactor: migrate button styled components #1062
refactor: migrate button styled components #1062
Conversation
} | ||
|
||
&[disabled] { | ||
background-color: ${props.isLoading ? 'COLOR_WHITE' : 'transparent'}; |
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.
use COLOR_WHITE constant without ' ' because here it converts to this css:
background-color: COLOR_WHITE
and there is not COLOR_WHITE color so use:
background-color: ${props.isLoading ? COLOR_WHITE : 'transparent'};
change in all places
props.shaded && | ||
` | ||
box-shadow: ${SHADOW_1}; | ||
`}; |
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.
here when there is only one line of styles you can:
${props => props.shaded && `box-shadow: ${SHADOW_1};`
#950
Changes proposed in this PR:
Migrate Button to styled-components
I have followed (at least) the PR section of the contributing guide.
@nexxtway/react-rainbow