Wildcard [Popover]: Support absolute strategy `tether` calculations
Created by: vovakulikov
Context
Prior to this PR the <Popover />
component always rendered its content outside of DOM hierarchy and set a positions: fixed
position layout to it. This strategy is called fixed
and it usually covers 80% of all usage of <Popover />
like components.
But sometimes we want to render the Popover element right next to the target and set the position: absolute
strategy in order to make popover content that it hides behind the borders of constraints (visible viewport or any scroll parents on the way to the top of DOM tree).
Fixed | Absolute |
---|---|