diff --git a/packages/web-react/src/components/Tooltip/TooltipTrigger.tsx b/packages/web-react/src/components/Tooltip/TooltipTrigger.tsx index ceea9507b7..ae72967a86 100644 --- a/packages/web-react/src/components/Tooltip/TooltipTrigger.tsx +++ b/packages/web-react/src/components/Tooltip/TooltipTrigger.tsx @@ -17,7 +17,7 @@ const TooltipTrigger = (props: TooltipTriggerProps) => { const { styleProps: triggerStyleProps, props: transferProps } = useStyleProps(rest); return ( - + {typeof children === 'function' ? children({ isOpen }) : children} ); diff --git a/packages/web-react/src/components/TooltipModern/demo/TooltipDismissible.tsx b/packages/web-react/src/components/TooltipModern/demo/TooltipDismissible.tsx index c663843d1d..528203ae7d 100644 --- a/packages/web-react/src/components/TooltipModern/demo/TooltipDismissible.tsx +++ b/packages/web-react/src/components/TooltipModern/demo/TooltipDismissible.tsx @@ -7,7 +7,7 @@ const TooltipDismissible = () => { return (
- + I have a tooltip 😎 Close me