-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ability to have different links in the "mobile" menu vs the standard menu. #38201
Comments
@jamiemarsland it sounds like you want a way to conditionally show nav items based on screen size. Is that right? Just want to ensure the description is filled out. |
Jame and I discussed this and yes that is what he's looking for. Imagine the mobile menu needs to show slightly different items than the primary one. Currently you can't do that. I do wonder about the a11y implications of this and whether what we actually need is a way to conditionally show/hide blocks depending on screen size. I don't think we'll be able to have different menus tied to the same block. |
This is incredibly important for larger sites e.g ecommerce sites that have mega menus as the main menu. In the past this was handled by themes by having different menus assigned to different locations. |
That's what I'm thinking. Perhaps having two seperate Navigation blocks but with different rules governing the block's display at different breakpoints. If they are completed different menus then that's pretty valid although I'd like some a11y feedback before we look to implement anything. |
As a workaround :
Kudos to @getdave for providing a little tutorial on Youtube: https://youtu.be/dY3f8sHcAPA |
Good advice. What you describe here is what we could create as a Core feature without the need for the custom CSS. |
Only if you provide a setting for a break point, which so far has been different for every theme. Yet this would complicate things. I'm not sure, if |
It's not. It's notoriously bad... It fails miserably when there is caching involved, reverse proxies and so on. |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
I've updated the Issue. It's tracked in the Nav block tracking issue and so it's not stale. |
Related #43852 |
As per the comment from @getdave here: #43852 (comment) This was punted to a future release |
Hi folks, |
This Issue is closely related to #39142. There is an argument it can be closed in favour of that Issue. |
What problem does this address?
In some circumstances it is useful to have different items in the navigation on "mobile" vs "desktop" screen sizes. Currently this is not possible using the Navigation block
What is your proposed solution?
A means to select different menus to be displayed at different break points.
The text was updated successfully, but these errors were encountered: