Skip to content

Commit d624ea2

Browse files
committed
feat: DocViewer opt in to flyout session
1 parent 82815e2 commit d624ea2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/platform/plugins/shared/unified_doc_viewer/public/components/doc_viewer_flyout/doc_viewer_flyout.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { EuiFlyoutProps } from '@elastic/eui';
1515
import {
1616
EuiFlexGroup,
1717
EuiFlexItem,
18-
EuiFlyoutResizable,
18+
EuiFlyout,
1919
EuiFlyoutBody,
2020
EuiFlyoutHeader,
2121
EuiTitle,
@@ -263,7 +263,8 @@ export function UnifiedDocViewerFlyout({
263263

264264
return (
265265
<EuiPortal>
266-
<EuiFlyoutResizable
266+
<EuiFlyout
267+
session="start"
267268
className="DiscoverFlyout" // used to override the z-index of the flyout from SecuritySolution
268269
onClose={onClose}
269270
type={flyoutType ?? 'push'}
@@ -274,11 +275,13 @@ export function UnifiedDocViewerFlyout({
274275
ownFocus={true}
275276
minWidth={minWidth}
276277
maxWidth={maxWidth}
278+
resizable={true}
277279
onResize={setFlyoutWidth}
278280
css={{
279281
maxWidth: `${isXlScreen ? `calc(100vw - ${DEFAULT_WIDTH}px)` : '90vw'} !important`,
280282
}}
281283
paddingSize="m"
284+
aria-label={currentFlyoutTitle}
282285
{...a11yProps}
283286
>
284287
{screenReaderDescription}
@@ -324,7 +327,7 @@ export function UnifiedDocViewerFlyout({
324327
)}
325328
</EuiFlyoutHeader>
326329
<EuiFlyoutBody>{bodyContent}</EuiFlyoutBody>
327-
</EuiFlyoutResizable>
330+
</EuiFlyout>
328331
</EuiPortal>
329332
);
330333
}

0 commit comments

Comments
 (0)