Skip to content

Wildcard [Popover]: Support absolute strategy `tether` calculations

Administrator requested to merge vk/support-absolute-tether-strategy into main

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

Merge request reports

Loading