layerchart
layerchart copied to clipboard
[Tooltip] Portal outside of current DOM hierarchy
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.
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