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

tooltip: do not use a div container for tooltips #913

Conversation

fabiosantoscode
Copy link
Contributor

@fabiosantoscode fabiosantoscode commented Jan 10, 2020

This fixes the problem with Tooltips being misplaced on Chrome when the text which shows the Tooltip is on the left hand side of a <p>.

This also fixes the annoying warnings from React that a <div> is being placed inside of a <p>, because now it's a <span>.

Note: Currently, if the tooltip is too long, it won't line-break. This PR does not change this, and It's probably a non-issue for now.

Fix #870

@fabiosantoscode
Copy link
Contributor Author

Requesting review @shcheklein, not sure who's responsible for this repository.

@jorgeorpinel
Copy link
Contributor

I can review this one. Thanks for addressing this bug BTW!

@jorgeorpinel jorgeorpinel temporarily deployed to dvc-landing-feature-870-lynvht January 10, 2020 18:24 Inactive
@jorgeorpinel
Copy link
Contributor

@fabiosantoscode
Copy link
Contributor Author

@jorgeorpinel thanks for checking this out. What's next?

@shcheklein
Copy link
Member

@jorgeorpinel please feel free to approve and merge if you don't see any other issues.

@jorgeorpinel
Copy link
Contributor

What's next?

I was just waiting for your reply in #913 (review)

Now we approve and merge it 🙂

@jorgeorpinel jorgeorpinel merged commit 6ce3792 into iterative:master Jan 10, 2020
@fabiosantoscode fabiosantoscode deleted the feature/870-broken-tooltip-at-edge-of-p branch January 10, 2020 21:14
@fabiosantoscode
Copy link
Contributor Author

🎆 first merge!

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.

glossary: tooltip position breaks when word is at left edge of p
3 participants