mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution] Expandable flyout - update preview shadow (#211098)
## Summary Improved UI on preview background Before  After  ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
6006546dc4
commit
ece08bd3f6
2 changed files with 9 additions and 11 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
EuiSplitPanel,
|
||||
EuiText,
|
||||
useEuiTheme,
|
||||
transparentize,
|
||||
} from '@elastic/eui';
|
||||
import React, { memo, useMemo } from 'react';
|
||||
import { css } from '@emotion/react';
|
||||
|
@ -134,21 +135,17 @@ export const PreviewSection: React.FC<PreviewSectionProps> = memo(
|
|||
<div
|
||||
css={css`
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
right: 4px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: ${width};
|
||||
z-index: 1000;
|
||||
padding: ${euiTheme.size.m} ${euiTheme.size.s} 0px ${euiTheme.size.s};
|
||||
// TODO EUI: add color with transparency
|
||||
background: ${transparentize(euiTheme.colors.shadow, 0.1)};
|
||||
`}
|
||||
>
|
||||
<EuiSplitPanel.Outer
|
||||
css={css`
|
||||
margin: ${euiTheme.size.xs};
|
||||
box-shadow: 0 0 ${euiTheme.size.base} 0 ${euiTheme.colors.lightShade};
|
||||
`}
|
||||
data-test-subj={PREVIEW_SECTION_TEST_ID}
|
||||
className="eui-fullHeight"
|
||||
>
|
||||
<EuiSplitPanel.Outer data-test-subj={PREVIEW_SECTION_TEST_ID} className="eui-fullHeight">
|
||||
{isPreviewBanner(banner) && (
|
||||
<EuiSplitPanel.Inner
|
||||
grow={false}
|
||||
|
|
|
@ -27,6 +27,7 @@ export const usePaneStyles = () => {
|
|||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
// TODO EUI: add color with transparency
|
||||
background: ${transparentize(euiTheme.colors.ink, 0.5)};
|
||||
z-index: ${(euiTheme.levels.flyout as number) +
|
||||
1}; // this z-index needs to be between the eventFlyout (set at 1000) and the timelineFlyout (set at 1002)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue