-
-
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
feat: add isLoading to the Button component #362
Conversation
src/components/Button/index.js
Outdated
} = this.props; | ||
|
||
const isDisabled = this.isDisabled(); |
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.
It is fine, but here you don't need to create a method for this since it is not used in any other place.
src/components/Button/styles.scss
Outdated
@@ -217,3 +222,39 @@ | |||
.rainbow-button--shaded { | |||
box-shadow: $shadow-1; | |||
} | |||
|
|||
.rainbow-button--content-hidden { |
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.
I think that .rainbow-button_content--hidden follow the class convention since content is a subcomponent not a modifier.
src/components/Button/styles.scss
Outdated
.rainbow-button--content-hidden { | ||
visibility: hidden; | ||
|
||
.rainbow-button--spinner-visible { |
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.
same^^
fix: #349