co-design
co-design copied to clipboard
Mobile menu is not working without Java Script
The mobile menu is currently not accessible without Java Script enabled. This was noted here:
https://github.com/codidact/core/pull/13#discussion_r367251158
This should be fixed. This issue is for collecting ideas on how to solve that.
The way I usually do a CSS-only mobile menu is to have a checkbox+label - the checkbox is always hidden via CSS, and the label is styled to look like an "open menu" button. Then the sibling and state selectors (i.e. .checkbox:checked ~ .menu) can be used to make the menu visible when the checkbox is checked.