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); }