Replies: 1 comment 2 replies
-
sounds good - happy to accept a PR 🙏 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The DevTools component (button & floating panel), despite having a very high
z-index
, can appear under elements that have a lowerz-index
, due to something called stacking context. In short, if one of your ancestors has az-index
lower than one of its siblings, then that sibling will be rendered over your element, regardless of your element'sz-index
.The solution is to use a portal, and render the component in the body so that it is rendered over everything else regardless of the stacking context.
Has that been considered?
Beta Was this translation helpful? Give feedback.
All reactions