-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Avatar z-index bug #3009
Comments
@sssilver we're in a transitory time were folks are actively using Skeleton v2 and the v3 beta. Can you please share which of these you're reporting this for so I can flag it appropriately please. That said, Avatars shouldn't have a z-index set by default. Are you by chance using Floating UI, the v2 Popup feature, or the v3 Popover features? All of these utilize Floating UI which does not take an opinionated stance on the z-index: This could be related to that, and a quick fix would be to set a z-index on your popover. Z-index fighting can happen for odd reasons sometimes. For example, if you use the backdrop blur feature in Chrome, that feature will take precedence over popovers. Just want to help correctly diagnose this for you. |
Sorry about that, updated the post to add the package versions |
Thanks for the clarification @sssilver. So the Tooltip is one of those v3 Popover features I was mentioning. It's implemented using Zag.js, but under the hood they use Floating UI. So the z-index issue I mentioned above is still relevant - this may need to be user-defined. That said, I've noted we currently don't provide props for users to provide classes to the "position" element - which Floating UI uses - so this isn't easily addressable on your end yet: I'll leave this ticket open to research and address this. But I'd expect we'll add a set of props for this element like Still not sure what about the avatar trips it up, but again that's how these things go some times. |
@sssilver as at least a temporary fix, I might suggest adding something like this to your global stylesheet to see if it helps: [data-scope="tooltip"] { @apply z-10; }
But this should specify a z-index for any Tooltip popover instance. See if that helps! |
This did help 🤘 |
@sssilver FYI per #3029 we will be updated all four Svelte-specific Popover components to implement a new set of This will drop as part of the next release in about 2 weeks from today. |
Current Behavior
Avatars currently pop in front of tooltips inside other, unrelated containers for some reason.
None of the z-indices of any elements in the screenshot have been manually overridden.
Expected Behavior
Avatar components z-index acts like any other component
Steps To Reproduce
No response
Link to Reproduction / Stackblitz
No response
More Information
Tooltip:
Avatar:
The text was updated successfully, but these errors were encountered: