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

Fix Tooltip to Allow Text Wrapping #425

Merged
merged 8 commits into from
Oct 31, 2023
Merged

Fix Tooltip to Allow Text Wrapping #425

merged 8 commits into from
Oct 31, 2023

Conversation

alextaing
Copy link
Contributor

@alextaing alextaing commented Oct 26, 2023

This PR allows the tooltip to wrap when the text is too long, as opposed to getting cut off by the end of the screen. I've attached some screen shots to show some of the edge cases. This tooltip closes on scroll, and will work as expected in different scrolled positions. Although it has "fixed" positioning, react-tooltip ensures that scroll behavior works as expected. The tooltip has also now been moved to above the tooltip, which was approved by Product.

Here is a loom of some of the behavior in different edge cases.

This PR also addresses a small bug where if the side panel becomes small enough, the undefined menu button and the info icon would overlap. To get around this, right margin was added to the icon. Some left padding from the icon was also removed since the gap was a little awkward.

J=SLAP-2958
TEST=manual

@alextaing alextaing changed the title Tooltip Wrap Text Fix Tooltip to Allow Text Wrapping Oct 26, 2023
@alextaing alextaing requested a review from nmanu1 October 31, 2023 13:30
@alextaing alextaing merged commit e877d68 into main Oct 31, 2023
15 checks passed
@alextaing alextaing deleted the dev/tooltip-wrap-text branch October 31, 2023 14:37
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