I am trying to override the Panel layer styles and decrease the index to 999998 in order to achieve my div to be above the grayed layer and below the panel when Panel is opened. So I tried to override the overlayProps , but as i see there is a Layer component above the overlay that has z-index:1000000 and inherits the styles. How can i override the layer class with a proper way to achieve my case ? Please check my codepen example http://codepen.io/mariosch/pen/dyGYEQG
<div>
<div style={{zIndex: 999999}}>Should be above overlay and below side panel</div>
<DefaultButton text="Open panel" onClick={openPanel} />
<Panel
headerText="Sample panel"
isOpen={isOpen}
onDismiss={dismissPanel}
// You MUST provide this prop! Otherwise screen readers will just say "button" with no label.
closeButtonAriaLabel="Close"
overlayProps={{ styles: { root: { zIndex: 999998 }}}}
>
<p>Content goes here.</p>
</Panel>
</div>