-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link popover does not scroll with page #15371
Comments
A challenge to consider here is that |
@aduth Previously [the component] also used |
Did GitHub eat your markup between words "Previously" and "also" ? Unsure if your comment was meant to include a reference to a specific example. If I recall correctly, Popover was originally positioned relatively, and then refactored to be separate in the DOM when Slot/Fill was first introduced. Maybe that's the previous implementation relied upon. Actually, just now looking at the implementation, worth pointing out that gutenberg/packages/components/src/popover/index.js Lines 393 to 397 in c0ac81a
(Unrelated: cc @jorgefilipecosta you had mentioned some issues with Popover in Widgets screen, I wonder if this might be the cause) |
Thank you for bringing this up, I think the popovers problems in the widgets screen were related to not having a working PopoverProvider there. |
Sorry, corrected. :) Just meant to refer to the component affected. What I meant is that, previously the link container also used Popover, but somehow it was placed relatively to the rich text container. I'm not sure how this was done exactly. |
Fixed by #17867. |
Describe the bug
Introduced by #14938. Cc @aduth.
Noticed while testing #15035.
When the link popover is visible, and you scroll the page, the link popover doesn't move. That's because it have a fixed position. Previously the popover element would be positioned in the RichText wrapper element, and would be positioned relative to that.
Suggested fix: add an option to
Popover
to allow inline positioning with relative coordinates.The text was updated successfully, but these errors were encountered: