You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect this is supported and I'm just failing to read the docs correctly.
We often render tooltips within components like drawers or modals.
In these situations, we want the tooltip positioning logic to treat the drawer as its 'viewport' - i.e. avoiding collisions, just like it would with the whole screen if this element was positioned on the right.
I can see that you can pass in a collisionBoundary element, but don't really understand how that works given the drawer is a parent of the tooltip
Suspect I am being dim - would love some help from someone who understands these primitives better than I do!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I suspect this is supported and I'm just failing to read the docs correctly.
We often render tooltips within components like drawers or modals.
In these situations, we want the tooltip positioning logic to treat the drawer as its 'viewport' - i.e. avoiding collisions, just like it would with the whole screen if this element was positioned on the right.
I can see that you can pass in a
collisionBoundary
element, but don't really understand how that works given the drawer is a parent of the tooltipSuspect I am being dim - would love some help from someone who understands these primitives better than I do!
Beta Was this translation helpful? Give feedback.
All reactions