TooltipIcon maxwidth
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Summary
The tooltip width is not enough for the text inside (aria-label).
tried setting the maxwidth to none but it didn’t help:
.bx–tooltip__label { max-width: none; }
Relevant information
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Tooltip MaxWidth and spacing between Tooltip Icon and Tooltip ...
I'd like to set a maxwidth property for my tooltips so it forces the contents to wrap. I don't want tooltips that extend...
Read more >OpenSpan Studio | Using the ShowTooltip Method
This parameter determines to which corner of the control's rectangle the ToolTip is attached. You can select Bottom Left, Bottom Right or Top...
Read more >Tooltip - Icon Trigger ⋅ Storybook - CMS Design System
Name Description Control
className Classes applied to the tooltip trigger. string ds‑c‑tooltip__trigger‑icon
children* Tooltip trigger content. ReactNode ‑
inversed boolean Set boolean
Read more >Standard tooltip - Carbon Design System
Container, max-width, 288 / 18, –. padding, 16 / 1, $spacing-05 ... On mobile, tooltips can only appear below the tooltip icon.
Read more >React Tooltip component - Material UI - MUI
Tooltips display informative text when users hover over, focus on, or tap an element.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK if you select the (pseudo) element in question and go to Computed tab, you can see
width
is equal tomax-width
. If you hover-over thewidth
, and click on the right-arrow icon (with circle), you’ll see the style rule dictatingwidth
. If you uncheck all the rules settingwidth
there and changemax-width
, you’ll get yourmax-width
in effect. Hope this helps!OK do you want to go to https://codesandbox.io/s/fragrant-morning-267l5, right-click the tooltip trigger button and select Inspect, right-click on the parent
<button>
and select Force state -:hover
, select<span class="bx--assistive-text" id="icon-tooltip-20">
and addmax-width: none; width: 640px
toelement.style
section?