Using Tooltip on MenuItem - Fluent UI V9 #26056
-
Hi Is there a way to solve it? I want the tooltip to be displayed only on hover on items in the menu. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is a prop called |
Beta Was this translation helpful? Give feedback.
-
Just want to note that if a team does this, they would also need to set focus within the menu manually when it is opened. From an accessibility perspective, it is not at all recommended to set this to anything other than the first menu item. In practice, without breaking keyboard and screen reader accessibility, the only way around this would be to track whether the menu is opened with a click or a keyboard event, and control the display of the tooltip based on that. The other approach would be to not display tooltips within a menu (which is what I would personally recommend in almost all cases). |
Beta Was this translation helpful? Give feedback.
There is a prop called
unstable_disableAutoFocus
forPopover
(#26141) that prevents this behavior, it seems that it's reasonable to implement forMenu
, too. @maayanShtengel would you mind to create an issue?