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
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.
The text was updated successfully, but these errors were encountered:
Forgot to mention, since exposing the actual placement with a callback or something else would be a lot more cumbersome, I went with setting the wrapper with the following classes:
Uh oh!
There was an error while loading. Please reload this page.
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 theplace
I am setting is not always respected. For example, if I have setplace="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 onplace
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 forplace
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.The text was updated successfully, but these errors were encountered: