Skip to content

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

Open
raphaabrasil wants to merge 1 commit into
1egoman:masterfrom
raphaabrasil:issue69
Open

Allow the react component animation duration to be configurable. Related to #69.#93
raphaabrasil wants to merge 1 commit into
1egoman:masterfrom
raphaabrasil:issue69

Conversation

@raphaabrasil

Copy link
Copy Markdown
Contributor

No description provided.

@1egoman 1egoman left a comment

Copy link
Copy Markdown
Owner

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!

Comment thread docs/script.js
leave: this.state.transitionTimeout.leave,
}
});
}

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure!

Comment thread docs/css/styles.css
padding-top: 0.5em;
padding-bottom: 0.5em;
min-height: 2em; }
.funnies-wrapper--input-container {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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!

Comment thread docs/script.js
this.setState({ interval: parseInt(value) });
},
updateTransitionTimeout(type, value) {
if(type === 'enter') {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants