Skip to content

Commit

Permalink
feat: remove tooltips-container
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Apr 9, 2024
1 parent 307c7f9 commit 5a8c3d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ export default class Tooltip extends PureComponent<TooltipProps> {
disableDialogSlide: true,
animationType: AnimationType.EXPAND,
withoutDialog: false,
// TODO: remove in next major
containerSelector: "#tooltips-container",
tip: true,
hideWhenReferenceHidden: false,
modifiers: new Array<Modifier<unknown>>(),
Expand All @@ -189,8 +187,7 @@ export default class Tooltip extends PureComponent<TooltipProps> {
}

getContainer() {
// TODO: remove tooltips-container in next major
return document.getElementById("tooltips-container") || document.querySelector("body");
return document.querySelector("body");
}

renderTooltipContent() {
Expand Down
6 changes: 0 additions & 6 deletions packages/storybook-blocks/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5a8c3d4

Please sign in to comment.