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

Tooltip partially hidden within Card #1175

Closed
haobinliang opened this issue Sep 23, 2022 · 5 comments
Closed

Tooltip partially hidden within Card #1175

haobinliang opened this issue Sep 23, 2022 · 5 comments

Comments

@haobinliang
Copy link

haobinliang commented Sep 23, 2022

The tooltip within a card is bounded by overflow: hidden of the card; therefore when the content of the tooltip is too long or close to the edhe of the card, it is particlaly hidden.

Example: https://play.tailwindcss.com/Z8Hq3XM8pn

Screenshot 2022-09-23 at 19 21 37

@NikarashiHatsu
Copy link
Contributor

The only possible temporary workaround is by applying overflow-visible class to the card. I'm also hoping that this issue will be fixed in the future 😅.

<div class="card overflow-visible">
    <!-- content -->
</div>

@haobinliang
Copy link
Author

The only possible temporary workaround is by applying overflow-visible class to the card. I'm also hoping that this issue will be fixed in the future 😅.

<div class="card overflow-visible">
    <!-- content -->
</div>

Thanks @NikarashiHatsu ... It's a trade off of showing the card photo corners as rectangle because they are overflow... 😢 So would need to add rounded-tr rounded-tl to the img tag as well...

@NikarashiHatsu
Copy link
Contributor

Yea, it's kind of annoying to have put some extra classes 😅. I thought putting z-50 along with tooltip will fix the issue, sadly it won't.

@jorgv
Copy link

jorgv commented Oct 27, 2022

Hi, I have the same problem when usingthe tooltip in a sidebar is there any other workaround to have the tooltip always showing
image

inorganik pushed a commit to inorganik/daisyui that referenced this issue Feb 7, 2023
@SacredSkull
Copy link

This is still present AFAIK, I think overflow-clip is a better solution for this. I was getting some odd (and horrible to track down) additional spacing causing the entire page to overflow with multiple collapses in a column using overflow-visible.

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

4 participants