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

[bug]: Tooltip on Themes page doesn't inherit theme #5886

Open
2 tasks done
chris-orgorg opened this issue Nov 20, 2024 · 0 comments
Open
2 tasks done

[bug]: Tooltip on Themes page doesn't inherit theme #5886

chris-orgorg opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chris-orgorg
Copy link

chris-orgorg commented Nov 20, 2024

Describe the bug

On the Themes page:

https://ui.shadcn.com/themes

When hovering over the new message button in the ChatDemo, the Tooltip portals in on the body, which is outside the .theme-red selector so the tooltip doesn't inherit the theme.

I think one potential solution could be to change the tooltip.tsx component to portal the tooltip content in relative to the tooltip root vs. on document.body.

Affected component/components

Documentation, Tooltip

How to reproduce

  1. Go to https://ui.shadcn.com/themes
  2. Hover on new message button in ChatDemo
  3. Notice tooltip is black, when it should be red if the red theme is selected.

Codesandbox/StackBlitz link

https://ui.shadcn.com/themes

Logs

No response

System Info

Mac, Chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@chris-orgorg chris-orgorg added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant