chroma-react icon indicating copy to clipboard operation
chroma-react copied to clipboard

Perf: Replace Tooltip library with something that doesn't create an empty portal

Open ynotdraw opened this issue 3 years ago • 0 comments

This is similar to https://github.com/lifeomic/chroma-react/issues/36, but specific for the <Tooltip component. Even when the tooltip is not visible, a portal is still put in the DOM. If a page has a table with many actions, there may be 30+ portals due to this. We should look at other options instead. One of the requirements is that it needs to be fully accessible.

A few that come to mind:

  • https://www.radix-ui.com/docs/primitives/components/tooltip
  • https://reach.tech/tooltip

ynotdraw avatar Oct 13 '21 15:10 ynotdraw