-
Notifications
You must be signed in to change notification settings - Fork 448
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
z-index of the tooltip? #57
Comments
Hey @anvk, I've tested Balloon in Material UI's website and it seemed to work without any issues. I'm not sure if the error didn't happened because I've added it at the generated DOM elements, and not the React component itself (so maybe I added it at the wrong element)? But taking a closer look at the UI components, they also do not seem to offer any reason as to why Ballon would be underneath them (most don't even have Can you please try something like this to your CSS to see if there is any change? [data-balloon],
[data-balloon]:before,
[data-balloon]:after {
z-index: 9999;
} |
Hi there for such a quick reply. But now I noticed that a fixed table header or other elements cause a tooltip to be cut as well. On the first screenshot you can see how tooltip is cut by table's header with a property p.s. |
Hmm, this is seems related to the parent element rather than the element holding tooltip itself. The Could you please try adding some /* apply this class to your table and/or <tr>/<td> to see if it works */
.move-me-up {
position: relative;
z-index: 9999;
} |
Hey, Any other idea? |
@larnoult It seems that in your case the issue is related to Could you please try to set |
Setting overflow:visible to |
I believe in most cases this happens because of If you guys have any other weird behaviors related to this issue, and the |
Hey @kazzkiq |
@yosigolan sadly any element inside another element with This isn't something we can deal with at Balloon.css, since it's a browser behavior. The best you can do to mitigate this is change your tooltip position or width, making it less prone to getting out of the overflow element. |
Thanks. |
Hi there,
First of all thanks a lot for this amazing tooltip. I have a tiny issue with it.
I'm using balloon.css with Material UI. I noticed that the tooltip is always underneath the components (like Select or Table Header Row). Wonder why so. I thought that it should be always on top of anything on the screen no matter what. But the opposite that it always got cut by the Material-UI components which are on the top of the page.
Hope it makes sense.
The text was updated successfully, but these errors were encountered: