equinor / design-system

The Equinor design system
MIT License
116 stars 62 forks source link

Tooltips do not show in external window #3440

Open TormodNy opened 1 month ago

TormodNy commented 1 month ago

Describe the bug

I want to open part of my application in a new external window with Tooltip components. However, when the tooltips are supposed to show, they render in the original window instead of the external one.

Steps to reproduce the bug

  1. Open codesandbox
  2. Click Open window button
  3. Hover over the Hover me text and see that the tooltip is in the wrong window image

Expected behavior

The Tooltip should show in the same window as the element it is wrapped around.

Specifications

Additional context https://codesandbox.io/p/sandbox/2023-05-05-eds-accordion-styling-forked-m2v79z

oddvernes commented 1 month ago

Out of curiosity, does MUI and Mantine tooltip work with this setup?

TormodNy commented 1 month ago

Seems to work fine with MUI (though it sometimes struggles with the styling), but the Mantine tooltip also shows in the original window instead. Here is an example with all three: https://codesandbox.io/p/sandbox/eds-tooltip-external-window-forked-3n55zl