-
Notifications
You must be signed in to change notification settings - Fork 115
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
Opened ActionMenu
does not scroll with anything other than body
#3175
Comments
Hey @HDinger 👋 Wow this one really confused me! The preview you linked works fine locally, but exhibits the behavior you noticed in production. It looks like there's an issue loading the JavaScript bundle in production if you're using the primer.style domain. I think this is probably an artifact of us switching to Vite. Try the following URL, it should work better: https://primer-lookbook.github.com/view-components/lookbook/inspect/primer/alpha/action_menu/in_scroll_container/ I'll see if I can get to the bottom of this bundle loading issue. |
Fixed by primer/primer.style#407 and primer/primer.style#408 |
Hi @camertron, Thank you for looking into this. @HDinger is on vacation but that topic is important so please allow me to jump in for her. The issue described by @HDinger is not that the preview was not working (at least for us it did). The issue she is describing actually exists in the real world (OpenProject): In her example code snippet she describes a situation where the button is not scrolling with the whole body. Instead the button resides in a block that scrolls independently from the body. And then, when the menu is opened, the menu does not scroll in sync with that block (and the button). Or to put it in other words: If you take her code and replace the linked example with her code then you will see that it is not working as expected. Thank you! |
Hey @wielinde, thank you for that additional context. I've been in Chicago attending RubyConf this week and haven't had time to look into this any further, but it sounds like the issue should be re-opened. Will take a look this coming week. |
Minimal example
Actual behavior
Expected
Setup
The text was updated successfully, but these errors were encountered: