Clicking on the Tooltip TriggerText doesn't open the tooltip
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having. If I use the triggerText property to label a tooltip, clicking or tapping on the triggerText doesn’t actually open the Tooltip
Is this issue related to a specific component? Tooltip
What did you expect to happen? What happened instead? What would you like to see changed?
I expected for the Tooltip to open when clicking on triggerText
What browser are you working in?
What version of the Carbon Design System are you using?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Bootstrap tooltips not working - Stack Overflow
Adding this code in footer works for me! but when i add the same code in header it doesn't work! <script type="text/javascript"> $('.some-class' ......
Read more >Tapping Popover or Tooltip with trigger="click" on mobile ...
If the target is hidden by the tooltip body, there is no way for the tooltip to be closed.
Read more >Tooltips · Bootstrap v5.0
Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using ... hover, or click them to trigger a tooltip (or...
Read more >Bootstrap Tooltip - Hide on click Issue - Solved! - Misc
So here is the solution to the tooltip problem: The tooltip trigger is set to hover and the tooltip is forced to close...
Read more >Tooltips | Charts - Google Developers
In the absence of any custom content, the tooltip content is automatically generated based on the underlying data. You can see the tooltip...
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
That makes sense I think the primary confusion was around the prop name “triggerText” I was assuming that the text would trigger the tooltip
Can you explain the scenario around why it needs to work this way?
The tooltip is opening from the icon so I feel like keeping the trigger target exclusively on the icon seems more natural, versus clicking on the label and having a tooltip open elsewhere. If the label could trigger the tooltip then why have the icon? The label also could potentially have a different function that the tooltip icon, like this example from github. These are just my initial thoughts, I’m going to look into this more and see what some ux best practices are and I’ll talk to the rest of the team about this as well.