-
Notifications
You must be signed in to change notification settings - Fork 14k
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: Filter names overflow wrap #25087
fix: Filter names overflow wrap #25087
Conversation
Judging by this CSS wrapping the filter name:
I think the intention was to only display 1 line of filter's name and truncate the rest. Maybe we should fix the bug by ensuring that filter name respects its parent's width instead of removing truncation? |
The problem is that the |
I thought we were avoiding tooltip on top of tooltip but it seems that's not the case given that Depend On will also show a tooltip. I'll add |
I think we treat FilterCard more like a popover and given it has very different styling than a tooltip it's ok for us to use both here |
630e431
to
77e5817
Compare
@kgabryje I roll back |
@@ -43,7 +43,7 @@ const VerticalFilterControlTitle = styled.h4` | |||
font-size: ${({ theme }) => theme.typography.sizes.s}px; | |||
color: ${({ theme }) => theme.colors.grayscale.dark1}; | |||
margin: 0; | |||
overflow-wrap: break-word; | |||
overflow-wrap: anywhere; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change still required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this correctly breaks the filter names in the native filters panel. The names are not truncated in that panel.
Great thank you! It seems unrelated to your fix, but the behaviour of displaying the tooltip seems flaky - when I open a filter card for the first time, the truncated title shows tooltip on hover, but when I close the filter card and open it again the tooltip doesn't appear anymore. Let's keep that in mind to fix it soon |
(cherry picked from commit b5bac6c)
SUMMARY
Fixes a problem with the overflow wrap of filter names.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2023-08-25.at.15.09.39.mov
Screen.Recording.2023-08-25.at.15.01.26.mov
TESTING INSTRUCTIONS
Check the videos for instructions.
ADDITIONAL INFORMATION