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] add a prop to choose how to position floating arrow #3100

Merged
merged 1 commit into from Dec 4, 2022

Conversation

jvdsande
Copy link
Contributor

@jvdsande jvdsande commented Dec 2, 2022

This MR adds a arrowPosition?: 'side' | 'center' prop to Tooltip and Popover (and components inheriting from Popover).

'side' is the previous behavior, where arrow sticks to the side of the tooltip in end and start position, but it not correctly placed when the dropdown is shifted to stay in the viewport.

'center' is the newer behavior, where arrow tries to center itself to the target, but ends up aligned to the "wrong" side if the tooltip is smaller than the target.

@rtivital rtivital merged commit 43e72a6 into mantinedev:master Dec 4, 2022
@rtivital
Copy link
Member

rtivital commented Dec 4, 2022

Thanks!

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.

None yet

2 participants