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

Improved mobile navigation layout #58036

Open
curiousduck-dev opened this issue Jan 20, 2024 · 1 comment
Open

Improved mobile navigation layout #58036

curiousduck-dev opened this issue Jan 20, 2024 · 1 comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.

Comments

@curiousduck-dev
Copy link

curiousduck-dev commented Jan 20, 2024

What problem does this address?

The navigation block is probably one of the fastest evolving blocks in Gutenberg and it's certainly come a long way. However, in its current form each navigation is siloed, with no ability to interconnect different navigations. For example, each navigation block comes with settings for mobile navigation - whether it be disabled entirely, activated at breakpoint, or always active. If - as is often the case for a great many websites - a header template part contains multiple navigation blocks the current setup results in an ugly mobile state of two separate hamburger icons with two separate mobile navigations.

What is your proposed solution?

It would be brilliant if some interconnectivity could be established between navigation blocks. In this example, having the ability to add the top navigation block's link list to the main navigation block's mobile navigation would fix the above issue, along with an additional "hide on mobile" setting for the mobile navigation options. That way, on mobile sizes, users could hide the top navigation altogether (removing that ugly second hamburger) and display its link list as part of the main navigation's mobile menu, creating a cleaner UX.

Here's a screenshot of how things work current on desktop and then on mobile:
Screenshot 2024-01-20 at 09 42 45
Screenshot 2024-01-20 at 09 42 58

@curiousduck-dev curiousduck-dev added the [Type] Enhancement A suggestion for improvement. label Jan 20, 2024
@jordesign jordesign added the [Block] Navigation Affects the Navigation Block label Jan 21, 2024
@paaljoachim
Copy link
Contributor

I will add in this States issue which brings up among other things responsiveness.
#57719

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants