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

Possible to separate highlighted div and placement of the tooltip #2487

Closed
Hafnernuss opened this issue Sep 29, 2023 · 2 comments · Fixed by #2995
Closed

Possible to separate highlighted div and placement of the tooltip #2487

Hafnernuss opened this issue Sep 29, 2023 · 2 comments · Fixed by #2995
Labels

Comments

@Hafnernuss
Copy link

Hi,

I've come across a usecase that would make things a lot easier, and I don't know if it can be (easily) achieved or if it's indeed not possible.

I would like to highlight a div, but place the tooltip modal on another div (within the highlighted div). Maybe the following screenshot explains it a little bit better:

image

Is this possible?

@RobbieTheWagner
Copy link
Member

I think you could maybe play with offset from floating-ui https://floating-ui.com/docs/offset

@RobbieTheWagner
Copy link
Member

There is also an open PR for adding multiple highlighted elements, so you could use that to highlight a larger parent element wrapping the content, but still set the one to attachTo to the one you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants