diff --git a/x-pack/plugins/timelines/public/components/actions/timeline/cases/create/flyout.tsx b/x-pack/plugins/timelines/public/components/actions/timeline/cases/create/flyout.tsx index 4f189648634d0..727d853990224 100644 --- a/x-pack/plugins/timelines/public/components/actions/timeline/cases/create/flyout.tsx +++ b/x-pack/plugins/timelines/public/components/actions/timeline/cases/create/flyout.tsx @@ -25,7 +25,7 @@ export interface CreateCaseModalProps { const StyledFlyout = styled(EuiFlyout)` ${({ theme }) => ` - z-index: ${theme.eui.euiZModal}; + z-index: ${theme.eui.euiZLevel5}; `} `; @@ -37,10 +37,10 @@ const maskOverlayClassName = 'create-case-flyout-mask-overlay'; * A global style is needed to target a parent element. */ -const GlobalStyle = createGlobalStyle<{ theme: { eui: { euiZModal: number } } }>` +const GlobalStyle = createGlobalStyle<{ theme: { eui: { euiZLevel5: number } } }>` .${maskOverlayClassName} { ${({ theme }) => ` - z-index: ${theme.eui.euiZModal}; + z-index: ${theme.eui.euiZLevel5}; `} } `;