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

Popover within <dialog> #201

Open
sevDaniel opened this issue Jul 2, 2024 · 0 comments
Open

Popover within <dialog> #201

sevDaniel opened this issue Jul 2, 2024 · 0 comments

Comments

@sevDaniel
Copy link

sevDaniel commented Jul 2, 2024

Hi, i've built a Tooltip component with react-tiny-popover and now i want to use this tooltip within a <dialog> component.
Something like:

<dialog>
    <Tooltip content="My little Tooltip">
       <MyIcon />
    </Tooltip>
</dialog>

The problem is that the Tooltip is always behind the dialog and thus invisible.
Is there a way to show the Tooltip within the dialog?

Here is a simple example:
https://codesandbox.io/p/sandbox/react-tiny-popover-within-dialog-rvvh3q

Thank you!

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

No branches or pull requests

1 participant