diff --git a/packages/tooltip/src/components/popover/Popover.tsx b/packages/tooltip/src/components/popover/Popover.tsx index a24e46094..5e96dfe0f 100644 --- a/packages/tooltip/src/components/popover/Popover.tsx +++ b/packages/tooltip/src/components/popover/Popover.tsx @@ -53,6 +53,8 @@ export interface PopoverProps { variant?: PopoverVariant; theme?: PopoverTheme; renderTrigger: (props: Record) => ReactNode; + appendTo?: HTMLElement | null | React.MutableRefObject; + zIndex?: number; } const ARROW_WIDTH = 12; @@ -67,6 +69,8 @@ export const Popover: React.FC = ({ hideArrow, renderTrigger, disablePadding, + appendTo, + zIndex, }) => { const [isOpen, setIsOpen] = useState(false); @@ -118,11 +122,11 @@ export const Popover: React.FC = ({ {renderTrigger({ ref: refs.setReference, ...getReferenceProps() })} {isMounted && ( - +
; + zIndex?: number; } type TooltipVariant = "info" | "warning" | "error"; @@ -52,6 +54,8 @@ export const Tooltip: React.FC = ({ label, variant, maxWidth = "500px", + appendTo, + zIndex, }) => { const [isOpen, setIsOpen] = useState(false); @@ -87,8 +91,8 @@ export const Tooltip: React.FC = ({
{isMounted && ( - -
+ +