From 1f6f6da4c07928cd51587e5d134b66e218005e99 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Tue, 13 Jan 2026 11:07:56 +0000 Subject: [PATCH] ensure portalled elements count as within the floatingfocusmanager boundary --- packages/grafana-ui/src/components/Drawer/Drawer.tsx | 3 ++- packages/grafana-ui/src/components/Modal/Modal.tsx | 3 ++- packages/grafana-ui/src/components/Toggletip/Toggletip.tsx | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/grafana-ui/src/components/Drawer/Drawer.tsx b/packages/grafana-ui/src/components/Drawer/Drawer.tsx index 7d115e3f9d0..678b71adb25 100644 --- a/packages/grafana-ui/src/components/Drawer/Drawer.tsx +++ b/packages/grafana-ui/src/components/Drawer/Drawer.tsx @@ -12,6 +12,7 @@ import { useStyles2 } from '../../themes/ThemeContext'; import { getDragStyles } from '../DragHandle/DragHandle'; import { IconButton } from '../IconButton/IconButton'; import { Stack } from '../Layout/Stack/Stack'; +import { getPortalContainer } from '../Portal/Portal'; import { ScrollContainer } from '../ScrollContainer/ScrollContainer'; import { Text } from '../Text/Text'; @@ -128,7 +129,7 @@ export function Drawer({ motionName: styles.maskMotion, }} > - + [getPortalContainer()]}>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
) { className={styles.modalBackdrop} onClick={onClickBackdrop || (closeOnBackdropClick ? onDismiss : undefined)} /> - + [getPortalContainer()]}>
- + [getPortalContainer()]}>