I have a component for a table cell with a variant for the header. Within it I wanted to make a dropdown/context menu that appears on click. I’m running into an issue where the absolutely positioned element is nested visually below the element parent’s sibling.
In this example, the top table/cell is correct and I want it on top (the gray colored cell). Below you can see the further breakdown of it’s sub elements.
However, this visually appears like this where the children of the parent (gray cell) are somehow below the sibling element of the parent (white cell) which has a higher “z-index”.
To achieve this context menu effect I have the “Context Menu” layer as absolutely positioned to the bottom and right.
Is this the wrong way to do this? If it’s not, how do I put the context menu above the other elements?