mantinedev / mantine

A fully featured React components library
https://mantine.dev
MIT License
26.79k stars 1.9k forks source link

Tooltip.Floating doesn't allow openDelay #6895

Closed alexis-exaud closed 1 month ago

alexis-exaud commented 1 month ago

Dependencies check up

What version of @mantine/* packages do you have in package.json?

7.12.2

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

All

Describe the bug

Pretty much what it says in title. In addition, adding a wrapping <Tooltip.Group /> component with an openDelay prop does not fix the issue and there's also no openDelay prop in <Tooltip.Floating /> itself

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

rtivital commented 1 month ago

There is no openDelay prop in Tooltip.Floating component because it does not support such feature. It is not the issue with the library, it is just not supported by this component.

alexis-exaud commented 1 month ago

I see that the Tooltip.Floating component doesn't include an openDelay prop, which may be a design choice. However, adding this feature could enhance user experience by preventing accidental tooltips from appearing too quickly, especially in cases where users may unintentionally hover over elements. Implementing this would make the tooltip behaviour more user-friendly.