diff --git a/x-pack/plugins/security_solution/public/timelines/components/flyout/pane/index.tsx b/x-pack/plugins/security_solution/public/timelines/components/flyout/pane/index.tsx index fdc5f19647b77..e87bec5e3cd3c 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/flyout/pane/index.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/flyout/pane/index.tsx @@ -7,7 +7,7 @@ import React, { useMemo, useRef } from 'react'; import { css } from '@emotion/react'; -import { euiThemeVars } from '@kbn/ui-theme'; +import { useEuiBackgroundColor, useEuiTheme } from '@elastic/eui'; import { StatefulTimeline } from '../../timeline'; import type { TimelineId } from '../../../../../common/types/timeline'; @@ -24,6 +24,7 @@ const FlyoutPaneComponent: React.FC = ({ timelineId, visible = true, }) => { + const { euiTheme } = useEuiTheme(); const ref = useRef(null); const timeline = useMemo( @@ -50,10 +51,10 @@ const FlyoutPaneComponent: React.FC = ({ min-width: 150px; height: calc(100% - 96px); top: 96px; - background: white; + background: ${useEuiBackgroundColor('plain')}; position: fixed; width: 100%; - z-index: ${euiThemeVars.euiZFlyout}; + z-index: ${euiTheme.levels.flyout}; display: ${visible ? 'block' : 'none'}; `} >