-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Tooltips shown over a RadioButtonGroup are unreadable #5340
Comments
Can you provide a snippet? |
The snippet that creates the tooltip is:
I've tried this with and without the |
Hi, Thanks for taking a look. I created a sample that demonstrates the problem here: pen When I first wrote this pen, I wasn't see the problem either. It turns out that the key to reproducing the problem is that the tooltip is being shown over a RadioButtonGroup. Sorry that I left that out earlier, I didn't realize that was a key component to the problem. Also, as part of creating this demo, I've found that the Dialog has nothing to do with this problem. When I do the same thing in a non-dialog component, the same problem occurs. |
This is an issue with the CSS property cc @oliviertassinari, not sure how to solve this, removing those 2 properties did not break the layout and works fine: btw, I removed them through chrome devtools. |
By the way, thanks for sharing that pen @rlansky, really helpful! |
@lucasbento, thanks for that tip. I found that when I changed the |
@rlansky: no problem. I did not see that the same was happening with the checkbox element, I also didn't find a way to fix that. A good workaround for now would be to try to use the tooltip after the checkbox, not above it. |
Same issue occurs when tooltip overlaps Toggle's label (using v0.16.2): |
Looks like this piece of CSS may help to workaround this issue until it will be fixed: button[type="button"]:hover, button[type="button"]:focus {
z-index: 10 !important;
} |
Closing for #2230 |
Problem description
In a dialog, I have an IconButton element with a tooltip attribute defined. The tooltip is shown correctly when the button is hovered over, but the display of the tooltip is messed up. Specifically, the background of the tooltip is lighter than expected and the white text shows the content of the dialog behind it. The result of this is that when the tooltip is shown over existing text in the dialog, it is nearly unreadable.
I've attached a screenshot that shows the problem.
I suspect this had something to do with a z-index problem, but no amount of fiddling with z-index attributes in the document was able to resolve this issue.
Versions
The text was updated successfully, but these errors were encountered: