-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
As flagged in #62821 (see PR description):
The V2 version of the component automatically "flips" the popover to render on top of the trigger if there isn't enough space below it. In the specific example of the block toolbar, this causes a small visual glitch when the browser's viewport is short enough to cause the flip:
This glitch happens because the block toolbar's header has position: sticky, which causes it to render on top of the select popover despite a lower z-index.
A few preliminary ideas that try to avoid the problem rather than solving it:
- disallow the popover to flip
- allow for lower minimum height
I'm not sure we can solve this systematically at the CSS level. At most we could look into where in the DOM the popover is rendered, and consider portalling it so that it plays better with the stacking context?
