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

refactor(tooltip): replace react-popper with use-popper #994

Merged
merged 3 commits into from
Aug 5, 2019

Conversation

montezume
Copy link
Contributor

Summary

Replaces the usage of react-popper with use-popper

{tooltipIsOpen && (
<TooltipWrapperComponent>
<Popper placement={props.placement} positionFixed={true}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was a mistake to have positionFixed set by default anyways, it's not really the behaviour we are looking for

Copy link
Contributor

@jonnybel jonnybel left a comment

Choose a reason for hiding this comment

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

Nice and clean

Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

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

Nice, so much simpler!

@montezume
Copy link
Contributor Author

I love how we don't need to make changes to our specs after switching out the implementation from react-popper to a hook. Pretty great stuff 🎈

@montezume montezume merged commit fcff8ff into master Aug 5, 2019
@montezume montezume deleted the ml-use-tooltip branch August 5, 2019 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants