Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable menu with CSS on mobile devices #2538
This PR is based on the issue #2536. It adds to the menu particle a checkbox option to completely disable the menu on mobile devices (
Hence, this gives the user the option to decide whether he wants to risk ending with no menu on mobile devices when no JS is supported but prevents the main menu to be rendered during page load (which is still an annoying issue for many people). This might be a good compromise because the default behaviour is maintained and there is an option to decide whether the risk should be taken (also explained in the field description).
Note: The SCSS added might not be added on the right spot and / or applied only for Hydrogen. Any input would be helpful I will change the PR properly if I know to do it correctly.