-
-
Notifications
You must be signed in to change notification settings - Fork 528
[FEAT REQ]: Indicate the actual place where tooltip is rendered in some way #969
Description
Is your feature request related to a problem? Please describe.
I have a similar need to this feature request, but I don't think there have been any changes made related to it before it was closed.
I can use the place prop that is being set on the tooltip in my styling to "track" the place that is being set, but the place I am setting is not always respected. For example, if I have set place="top", but there is no room at the top of the anchor element, the tooltip is positioned at the bottom of the anchor element. I can see why this is done, but the styling I have depending on place has no knowledge of the placement being different than the prop value, so the styling used is different than what it should be for the actual placement when it differs from the set value.
From the place prop description: Position relative to the anchor element where the tooltip will be rendered (if possible). The "if possible" part is what makes it impossible to use the same value for place in my implementation of this tooltip.
Describe the solution you'd like
Can we expose the place context or apply classNames to the tooltip to reflect the actual placement used?
Additional context
I am adding a border to the arrow shape and need to use the placement to determine what sides of the border should be set to none in order to only show a border around the outer edge.