react-spectrum
react-spectrum copied to clipboard
`react-aria-components/Tooltip`: `state.placement` should receive full `Placement` instead of `PlacementAxis`
Provide a general summary of the feature here
Currently the state.placement
in className
or style
callback is a PlacementAxis
, which only contains top
| bottom
| left
| right
.
When the position of the tooltip needs to adjust, it may also need to flip.
e.g. a button at the top-left corner with a tooltip placement='top end'
should flip on both axis to bottom start
.
Currently we only get bottom
which does not provide enough information to adjust the css accordingly.
๐ค Expected Behavior?
state.placement
contain full Placement
information.
๐ฏ Current Behavior
state.placement
only contains PlacementAxis
values.
By the way, do you know in what case state.placement
will contain the value center
?
๐ Possible Solution
No response
๐ฆ Context
The solution is not complete.
๐ป Examples
No response
๐งข Your Company/Team
Palo Alto Networks
๐ท Tracking Issue
No response