diff --git a/packages/design-system/src/components/tooltip.stories.tsx b/packages/design-system/src/components/tooltip.stories.tsx
index c36955b7c5f9..5b4296b8c472 100644
--- a/packages/design-system/src/components/tooltip.stories.tsx
+++ b/packages/design-system/src/components/tooltip.stories.tsx
@@ -1,12 +1,37 @@
-import { InputErrorsTooltip, TooltipProvider } from "./tooltip";
+import {
+ InputErrorsTooltip,
+ TooltipProvider,
+ Tooltip as TooltipDesign,
+} from "./tooltip";
import { Button } from "./button";
import { Box } from "./box";
+import { InputField } from "./input-field";
export default {
title: "Library/Tooltip",
};
-const TooltipStory = () => {
+export const TooltipDelay = () => {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export const Tooltip = () => {
return (
Some content
@@ -59,5 +84,3 @@ const TooltipStory = () => {
);
};
-
-export { TooltipStory as Tooltip };
diff --git a/packages/design-system/src/components/tooltip.tsx b/packages/design-system/src/components/tooltip.tsx
index 8686b89239c5..bfbe78c53ba1 100644
--- a/packages/design-system/src/components/tooltip.tsx
+++ b/packages/design-system/src/components/tooltip.tsx
@@ -218,7 +218,11 @@ export const InputErrorsTooltip = ({
collisionBoundary={collisionBoundary as never}
collisionPadding={-8}
hideWhenDetached={true}
- content={content ?? " "}
+ content={
+ errors !== undefined && errors.length !== 0
+ ? (content ?? " ")
+ : undefined
+ }
open={errors !== undefined && errors.length !== 0}
side={side ?? "right"}
css={css}