Skip to content

Fix the dismissed state stranding mega menu panels (develop) - #237

Merged
mlaetitia merged 3 commits into
developfrom
fix/t51eng-2081-dismiss-state-develop
Sep 14, 2026
Merged

Fix the dismissed state stranding mega menu panels (develop)#237
mlaetitia merged 3 commits into
developfrom
fix/t51eng-2081-dismiss-state-develop

Conversation

@mlaetitia

Copy link
Copy Markdown
Collaborator

Related to T51ENG-2081

Proposed changes

  • Clear the dismissed state when a panel reopens, and only mark the panel that was actually open.
  • Stop declaring typed parameters on the walker's nav_menu_item_attributes callback.
  • Remove a dropdown rule left behind that no longer does anything.

Why are these changes being made?

Pressing Escape marked every mega menu item as dismissed, and only moving the pointer off an item cleared it. Hovering a different item afterwards, or reopening the same one without moving the mouse, left the page dimmed and the header opaque with no panel visible. Keyboard users had no way to clear it at all.

The walker's filter callback declared typed parameters. That filter is public and live for the whole of the walk, so another walker re-applying it with fewer arguments, or with $args as an array, would throw and take the header down site-wide. The matching callback in template-functions.php was already relaxed for this reason.

Testing instructions

  • Hover a dropdown, press Escape, then move the pointer to another top-level item: its panel should open normally.
  • Press Escape again while still hovering: the panel and the dimmed background should both go, and moving away and back should reopen it.

🤖 Generated with Claude Code

mlaetitia and others added 3 commits September 14, 2026 12:12
…e the page dimmed with no menu

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
@mlaetitia
mlaetitia merged commit e7fce44 into develop Sep 14, 2026
5 checks passed
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