Skip to content

bugfix: Firefox mobile navbar (dropdown parents without a URL couldn't be opened)#92

Open
medjakub wants to merge 1 commit into
icaps2026:mainfrom
medjakub:main
Open

bugfix: Firefox mobile navbar (dropdown parents without a URL couldn't be opened)#92
medjakub wants to merge 1 commit into
icaps2026:mainfrom
medjakub:main

Conversation

@medjakub

@medjakub medjakub commented Jul 3, 2026

Copy link
Copy Markdown

On mobile Firefox, tapping a dropdown parent that has no page of its own (Students, Attending) did nothing useful. Those items were rendered as with the expand arrow as a nested inside the anchor, so tapping the arrow both toggled the submenu checkbox and fired the empty-href navigation — and Firefox resolved that in favor of navigating, so the submenu never opened.

On top of that, the arrow-rotation rule (input:checked + .drop-icon) never actually matched, since the drop-icon isn't an adjacent sibling of the checkbox in our markup.

Changes:

  • Dropdown parents with no URL now render as a (toggle only, no navigation); real links stay as .
  • Switched the arrow-rotation selector to .menu__dropdown:has(> input:checked) so it matches the actual structure.
  • Moved the mobile hover/active background from .menu__item to .menu__link so only the tapped row highlights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant