From 570e08700720d561c3d1201e03142634fccf5939 Mon Sep 17 00:00:00 2001 From: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> Date: Fri, 25 Jul 2025 13:30:43 -0400 Subject: [PATCH] fix(tooltips): tool tips should be portals (#5265) --- .../src/components/Tooltip/Tooltip.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/platform/ui-next/src/components/Tooltip/Tooltip.tsx b/platform/ui-next/src/components/Tooltip/Tooltip.tsx index ad8151fb6..2bd7e7824 100644 --- a/platform/ui-next/src/components/Tooltip/Tooltip.tsx +++ b/platform/ui-next/src/components/Tooltip/Tooltip.tsx @@ -9,19 +9,23 @@ const Tooltip = TooltipPrimitive.Root; const TooltipTrigger = TooltipPrimitive.Trigger; +const TooltipPortal = TooltipPrimitive.Portal; + const TooltipContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, sideOffset = 4, ...props }, ref) => ( - + + + )); TooltipContent.displayName = TooltipPrimitive.Content.displayName;