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.

[OverflowMenuItem] itemText cannot put Tooltip component

See original GitHub issue

What package(s) are you using?

"carbon-components": "10.22.0",
"carbon-components-react": "7.22.0",
  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having.

Is this issue related to a specific component?

What did you expect to happen? What happened instead? What would you like to see changed?

What browser are you working in?

What version of the Carbon Design System are you using?

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Steps to reproduce the issue

  1. Use OverflowMenu, OverflowMenuItem component in DataTable TableCell.
  2. The whole OverflowMenu cannot open anymore.

Sandbox reproduce: https://codesandbox.io/s/overflow-menu-with-tooltip-8iykr?file=/src/index.js

Additional information

  • Screenshots or code
  • Notes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tw15egancommented, Oct 22, 2020

OverflowMenu items that are disabled are not in the tab order, so a keyboard user would not be able to navigate to this item and it would cause an a11y violation. That is why this pattern is not recommended.

1reaction
tw15egancommented, Oct 21, 2020

I don’t believe Tooltip is supported inside of an overflow menu. Overflow menu actions should be short, concise actions that do not need additional information. You could place the tooltip outside of the menu if more information is needed.

Please see this link for more info: https://www.carbondesignsystem.com/components/overflow-menu/usage#formatting

Read more comments on GitHub >

github_iconTop Results From Across the Web

Material UI tooltip doesn't display on custom component ...
I'll suggest Two solutions for the problem: Surround PlannerIcon with div as a parent element (div can hold a ref): <Tooltip text="Planner"> ...
Read more >
Overflow menu – Carbon Design System
Overflow menus are used when additional options are available to the user and there is a space constraint.
Read more >
React Tooltip component - Material UI - MUI
Tooltips display informative text when users hover over, focus on, or tap an element.
Read more >
KivyMD's documentation
e.g. You can have Blue but you cannot have NavyBlue. Add the custom theme to the MDApp as shown in the following snippet....
Read more >
Tooltips - reactstrap
reactstrap - easy to use React Bootstrap 4 components compatible with React 0.14.x and 15.
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