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
We use getAnchoredPosition for primer-tooltip positioning (which is soon to be upstreamed to PVC).
In some scenarios, we observed the tooltip is not perfectly aligned at edge, particularly when there's no space for perfect edge alignment. Here is an example where align is end.
I was also able to recreate this issue in storybook:
Expected behavior
Since there’s no space to perfectly align end, I would have expected anchorAlignment to be adjusted to start instead. Is that not expected behavior?
For now, we're thinking of housing additional positioning logic in tooltip to address immediate issues, but this should probably be responsibility of getAnchoredPosition.
The text was updated successfully, but these errors were encountered:
Context
We use
getAnchoredPosition
forprimer-tooltip
positioning (which is soon to be upstreamed to PVC).In some scenarios, we observed the tooltip is not perfectly aligned at edge, particularly when there's no space for perfect edge alignment. Here is an example where
align
isend
.I was also able to recreate this issue in storybook:
Expected behavior
Since there’s no space to perfectly align end, I would have expected
anchorAlignment
to be adjusted tostart
instead. Is that not expected behavior?For now, we're thinking of housing additional positioning logic in tooltip to address immediate issues, but this should probably be responsibility of
getAnchoredPosition
.The text was updated successfully, but these errors were encountered: