-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 simple does not allow word-wrap: break-word; #529
Comments
Hi @feliperyba, thanks for commenting! Do you mind making a new issue explaining your issue/use-case in more detail? I believe it is un-related to the tooltip bug. Thanks! 😄 |
@tw15egan I don't think there's a simple way to fix this without setting a width on the tooltip which wouldn't work for shorter content. Even if we add I suppose we could use javascript to calculate character length and set a width / change a class if it's over a certain amount of characters but seems like overkill for the simple tooltip when we have the regular tooltip already? |
@alisonjoseph I agree, not sure this will work for simple tooltip. I think the recommended course of action would be to use the regular tooltip for situations like this, or override the css and set a width on the end-user side (as we can't, because then it will break for other users). I'm going to close this as and recommend setting a width , or using the regular tooltip component |
@mandie12 commented on Fri Jan 26 2018
Tooltip simple does not allow word-wrap: break-word; on Chrome
@tw15egan commented on Fri Jan 26 2018
Can you try
white-space: pre
on the:before
element? And make sure you have a space after the period. This should then format correctly.The text was updated successfully, but these errors were encountered: