Skip to content
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

Close menu dropdown on scroll offset update #13310

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Conversation

ramram-mf
Copy link
Collaborator

@ramram-mf ramram-mf commented Dec 12, 2024

Description

This PR updates the behavior of the desktop main navigation dropdown so that it repositions when scrolled and the top offset changes. This new behavior wont apply when its in the top fixed position, including cases when the donate banner is closed or when it has scrolled past it.

Current state

mofo-cap-bug

Fixed state

mofo-cap-fix

Link to sample test page: https://foundation-s-tp1-1703-d-hoermc.herokuapp.com/en/
Related PRs/issues: #13299

@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1703-d-hoermc December 13, 2024 00:05 Inactive
@ramram-mf ramram-mf self-assigned this Dec 13, 2024
@ramram-mf ramram-mf requested a review from mmmavis December 13, 2024 18:42
@ramram-mf ramram-mf marked this pull request as ready for review December 13, 2024 18:43
Copy link
Collaborator

@mmmavis mmmavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ramram-mf , Thanks for the fix! It works great! I left one suggestion for improvement. If it looks good to you, please apply the code change and merge the PR. Thank you!

source/js/components/nav/desktop-dropdown.js Outdated Show resolved Hide resolved
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1703-d-hoermc December 17, 2024 22:32 Inactive
@ramram-mf ramram-mf merged commit 51f9b64 into main Dec 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants