Carbon: `TooltipDefinition` does not account for long strings

Created on 28 Oct 2020  路  6Comments  路  Source: carbon-design-system/carbon

TooltipDefinition does not account for long strings

https://codesandbox.io/s/currying-dew-8jedb

TooltipDefinition

bug 馃悰

All 6 comments

the max-width is set as a guideline based on our design recommendations for tooltip content length, but it can be overridden with CSS

That makes sense - in this case I believe the issue is how the word breaking is (or isn鈥檛) handled, but perhaps that鈥檚 something that should also vary on a case-by-case basis

We could add word-break: break-all by default if we want to handle this a bit more gracefully

https://codesandbox.io/s/youthful-taussig-m7ju3?file=/src/index.js

I'm good with that!

cc @carbon-design-system/design would this be okay to proceed with?

Just to clarify, we're keeping the max width but adding in a feature for word wrapping? Yeah I'm good with that.

Was this page helpful?
0 / 5 - 0 ratings