microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
18.35k stars 2.72k forks source link

[Feature]: Tooltips should not render when Menus are open #31639

Open NotWoods opened 3 months ago

NotWoods commented 3 months ago

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

For a pattern like this:

<Menu>
  <MenuTrigger>
    <Tooltip relationship="label">
      <Button />
    </Tooltip>
  </MenuTrigger>
  <MenuPopover />
</Menu>

The tooltip will sometimes render on top of the menu depending on user actions. Ideally, the tooltip should not be visible when the menu attached to the same trigger is open.

This can be done manually but it's a common enough pattern I think it should be supported by default.

Have you discussed this feature with our team

No response

Additional context

image

Validations

Priority

Med-High

miroslavstastny commented 3 months ago

There are more partners reporting this.

gouttierre commented 1 week ago

📢

cc~ @NotWoods , @miroslavstastny , @tudorpopams , @jurokapsiar , @JustSlone