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

On desktop, main menu shifts left to right on click of a primary item #1645

Open
ericras opened this issue Mar 24, 2023 · 1 comment
Open

Comments

@ericras
Copy link
Member

ericras commented Mar 24, 2023

Something about the hamburger menu icon isn't implemented as nicely as it could be. When you click a primary nav item on desktop (when the menu has sub links so that the hamburger is shown) the menu shifts and jiggles back and forth.

@skoolbus39
Copy link
Member

The reason for this is that some sites (like Nebraska Today) don't have secondary navigation items (in the mega menu). The hamburger icon is loaded programmatically via JavaScript only if any primary navigation items have children (secondary navigation). If there's a better way of implementing this, I'm all ears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants