radix-ui/primitives

Auto-align PopOver and Tooltip

ritikaGupta4 opened this issue · 0 comments

Feature request

Overview

Specify a bounding element to be used for autoAlign calculations. By default can be viewport.
If side="left" but it does not have space on left it moves to right -> but for small screens chances are that there is not space on right as well, then it should move at the bottom or top based on space.

Examples in other libraries

Who does this impact? Who is this for?

Giving WCAG issue for small screens in case of reflow or resize to smaller screens

Additional context

Currently:
image-20241210-122808