question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clicking on the Tooltip TriggerText doesn't open the tooltip

See original GitHub issue

What 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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
scottdickersoncommented, Jan 27, 2020

That makes sense I think the primary confusion was around the prop name “triggerText” I was assuming that the text would trigger the tooltip

1reaction
aagonzalescommented, Jan 27, 2020

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.

Jan-27-2020 13-16-40

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found