-
Notifications
You must be signed in to change notification settings - Fork 598
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
[Bug] ActionMenu
still scrolls if in sticky
container
#4780
Comments
Can confirm, when scrolling it goes weeee 🚀 (😂) @dipree we were taking a look at this during our maintainer sync and wanted to check-in to understand where this issue came from (did you happen to see this yourself or was it user reported?) We're trying to see where this fits among our issues in terms of priority 👀 |
please assign to me |
It has been reported in the past for the mentioned README toc, but I'm not sure anymore where that was unfortunately. I was just recently reminded of this again when putting an |
The behavior you're describing occurs because position: absolute positions the element relative to its nearest positioned ancestor. In a sticky container, if there's no such ancestor, the element will be positioned relative to the document, which can cause it to move unexpectedly when scrolling. |
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
Description
ActionMenu
always hasposition: absolute
. When in a container that issticky
it will consequently not stick with the container but with the absolute position. So, when scrolling it goes weeee 🚀Steps to reproduce
Put
ActionMenu
in asticky
container and scroll. For example, the table of content for the README in our repo https://github.com/github/primer, trigger the ActionMenu, than scroll.Version
36.27.0
Browser
No response
The text was updated successfully, but these errors were encountered: