From 5a8c3d4e859efde2f784f491d6abd15d020c1492 Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Tue, 9 Apr 2024 10:37:31 +0100 Subject: [PATCH] feat: remove tooltips-container --- packages/core/src/components/Tooltip/Tooltip.tsx | 5 +---- packages/storybook-blocks/.storybook/preview-head.html | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/core/src/components/Tooltip/Tooltip.tsx b/packages/core/src/components/Tooltip/Tooltip.tsx index af1fbcded6..e6807213ad 100644 --- a/packages/core/src/components/Tooltip/Tooltip.tsx +++ b/packages/core/src/components/Tooltip/Tooltip.tsx @@ -166,8 +166,6 @@ export default class Tooltip extends PureComponent { disableDialogSlide: true, animationType: AnimationType.EXPAND, withoutDialog: false, - // TODO: remove in next major - containerSelector: "#tooltips-container", tip: true, hideWhenReferenceHidden: false, modifiers: new Array>(), @@ -189,8 +187,7 @@ export default class Tooltip extends PureComponent { } getContainer() { - // TODO: remove tooltips-container in next major - return document.getElementById("tooltips-container") || document.querySelector("body"); + return document.querySelector("body"); } renderTooltipContent() { diff --git a/packages/storybook-blocks/.storybook/preview-head.html b/packages/storybook-blocks/.storybook/preview-head.html index 171d23d437..56fe764fa4 100644 --- a/packages/storybook-blocks/.storybook/preview-head.html +++ b/packages/storybook-blocks/.storybook/preview-head.html @@ -32,12 +32,6 @@ font-size: 18px; margin-bottom: 48px; } - #tooltips-container { - position: relative; - white-space: pre-wrap; - z-index: 99999999; - max-width: 50%; - } .light-app-theme { background-color: var(--sb-primary-background-color); }