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

Allow the react component animation duration to be configurable. Related to #69. #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raphaabrasil
Copy link
Contributor

No description provided.

Copy link
Owner

@1egoman 1egoman left a comment

Choose a reason for hiding this comment

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

Other than the things that I mentioned in the review, could you potentially add a test or two to test the the animation duration?

Lastly, the tests are breaking in CI. They can be run locally with npm test, and here's a link to the run on travis: https://travis-ci.org/1egoman/funnies/jobs/284427154

Thanks for the contribution!

leave: this.state.transitionTimeout.leave,
}
});
}
Copy link
Owner

Choose a reason for hiding this comment

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

Can you make this one line and add a space after if? } else if (type === 'leave') {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure!

@@ -2699,8 +2699,20 @@ button, .button {
padding-top: 0.5em;
padding-bottom: 0.5em;
min-height: 2em; }
.funnies-wrapper--input-container {
Copy link
Owner

Choose a reason for hiding this comment

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

What does the double dash signify? Personally I prefer single dashes for the whole thing (ie, funnies-wrapper-input-container) but I'd entertain alternatives if there's a compelling reason to use them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's just a pattern (or a methodology) that i like to use because i think that it combines very well with SASS called BEM.

By the way, i used the wrong pattern. According to BEM, in this case, i should have used .funnies-wrapper__input-container instead of .funnies-wrapper--input-container

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, cool. I don't really mind it, was just curious. Thanks for the link!

this.setState({ interval: parseInt(value) });
},
updateTransitionTimeout(type, value) {
if(type === 'enter') {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a space after if? if (type === 'enter') {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure!

@raphaabrasil
Copy link
Contributor Author

Ok, I'll fix those things and write some tests!

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.

None yet

2 participants