Skip to content
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

Merged
merged 2 commits into from
Oct 28, 2018

Conversation

cmcartaya
Copy link
Collaborator

fix: #349

} = this.props;

const isDisabled = this.isDisabled();

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.

@@ -217,3 +222,39 @@
.rainbow-button--shaded {
box-shadow: $shadow-1;
}

.rainbow-button--content-hidden {

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.

.rainbow-button--content-hidden {
visibility: hidden;

.rainbow-button--spinner-visible {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same^^

@LeandroTorresSicilia LeandroTorresSicilia merged commit 4fc0c0e into master Oct 28, 2018
@TahimiLeonBravo TahimiLeonBravo deleted the button-refactoring branch September 23, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add isLoading to the Button component
2 participants