layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

[Tooltip] Portal outside of current DOM hierarchy

Open techniq opened this issue 10 months ago • 1 comments

When not using <Tooltip contained="container"> (default), such contained="window" (example), it would be better if the tooltip was guaranteed to always be on top.

Moving the DOM to the last element of <body> using something like use:portal with a descent z-index is typically the best approach. This is what Svelte UX's Tooltip (and other components like Popover, Dialog, Drawer, Menu, etc) use.

techniq avatar Mar 06 '25 17:03 techniq

This would be very useful for us - for bar charts with a lot of bars we are scrolling within a container, causing the tooltip to clip at the edge of the container

Image

AndreasHald avatar Aug 06 '25 08:08 AndreasHald