Skip to content
Snippets Groups Projects

Resolve "Without JS+narrow screens, top menu bar does not work"

All threads resolved!
  • This change makes the hamburger menu work without requiring JS and by only using CSS techniques
  • It is implemented by using a technique referred to as checkbox hack: https://css-tricks.com/the-checkbox-hack/

Browser support seems to be very well: https://caniuse.com/#feat=mdn-css_selectors_checked

Tested it on the most recent version of Chrome, Firefox, Chrome on Android, Firefox on Android, Safari and it's even working on IE :astonished:

With this change we will be one of very few sites that have a working mobile menu when JS is disabled as far as I just learned when trying out a few popular sites. It's also an accessibility gain.

Closes #16 (closed)

Edited by Huste, Tobias

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading