Skip to content
Snippets Groups Projects
Commit 014b3e20 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #2446 from metabase/page-flag-z-index

Be more conservative with our popover z-index. Fixes tutorial page flag.
parents e9a540d6 323a11a4
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ export default class OnClickOutsideWrapper extends ClickOutComponent {
this.timeout = setTimeout(() => {
popoverStack.push(this);
// HACK: set the z-index of the parent element to ensure it's always on top
// NOTE: this actually doesn't seem to be working correctly for popovers since PopoverBody creates a stacking context
ReactDOM.findDOMNode(this).parentNode.style.zIndex = popoverStack.length + 2; // HACK: add 2 to ensure it's in front of main and nav elements
}, 10);
}
......
......@@ -6,7 +6,7 @@
.PopoverContainer {
pointer-events: none;
position: absolute;
z-index: 10000000000000; /* above all the things */
z-index: 4;
}
.PopoverBody {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment