been staring at this one bug for two hours. everything looks fine in the inspector but the dropdown is somehow sliding behind the sidebar even though I set it to 9999. turns out the parent container has a transform property applied so it's created its own separate stacking context. it doesn't matter what z-index you put on the child if the parent is stuck in that layer. i tried changing it to position: relative but that didn't fix the overlap with the header. basically every time I use a transition or an opacity change on a wrapper, the whole z-index hierarchy breaks. we should all try refactoring one component this week to move those absolute elements out of transformed containers. if you can't move it, just check for
transform: translate(0, 0)
or even
will-change: transform
.
.dropdown-wrapper {position: relative;z-index: 10;transform: translateY(0);}It's a
simple total nightmare when you have deep nesting. Just look for any property that triggers a new context before you start bumping numbers up.