Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core] Tooltip: add middlewares prop #7281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvllmr
Copy link
Contributor

@jvllmr jvllmr commented Dec 18, 2024

This PR implements the middlewares prop for Tooltip which lets you control the Floating UI middlewares used with the Tooltip. The implementation is derived from the Popover component. One could unite these implementations, but then there would be coupling between the Tooltip and the Popover component which wouldn't be helpful for future adjustments.

I added only one simple test demonstration in the storybook to observe my changes. Let me know if you require more tests/demos.

closes #7268

@jvllmr
Copy link
Contributor Author

jvllmr commented Dec 18, 2024

There is also room for a discussion if the inline prop should be deprecated in a new major version in favor of the middlewares prop.

@jvllmr jvllmr force-pushed the tooltip-middlewares branch from 1a85ba7 to cdfbde3 Compare December 18, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip can overlap with Menu when close to window border because of flip
1 participant