Skip to content

Keep converting nav when overlay chrome is a runtime target - #1789

Merged
chubes4 merged 2 commits into
trunkfrom
fix/nav-skip-runtime-overlay
Sep 16, 2026
Merged

chubes4 merged 2 commits into
trunkfrom
fix/nav-skip-runtime-overlay

Conversation

@chubes4

@chubes4 chubes4 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

SSI compile injects runtime DOM selectors from captured scripts. An empty overlay pane (fullScreenOverlay) is both navigation chrome and a runtime target, which aborted list-backed conversion (return []) before the hidden Tiny Menu links could become core/navigation.

Skip that abort for overlay/fullscreen/drawer panes that contain no links. The hidden list still becomes a native mobile overlay menu.

Stacked on #1780. Proven against a Wix Tiny Menu fixture with runtime_dom_selectors: ['.fullScreenOverlay'].

Test plan

  • php tests/unit/overlay-hidden-navigation.php (includes the runtime-selector case)
  • php tests/unit/layout-boundary-excludes-shell.php
  • php tests/unit/navigation-inert-support-children.php
  • php tests/contract/run.php
  • Re-import Rachel Braun and confirm the homepage has core/navigation with overlayMenu mobile

AI assistance

Grok 4.6 via OpenCode diagnosed why HtmlTransformer emitted navigation but SSI compilePage dropped it (runtime overlay selector abort), implemented the skip, extended the unit test, and ran the listed checks. Chris Huber remains responsible for review and merge.

…ntime target

An empty overlay pane marked as a runtime DOM target aborted list-backed
navigation before the hidden link list could become core/navigation.
…is a runtime target

After the hidden list is already the menu, a runtime-targeted hamburger
must be skipped as chrome instead of aborting conversion.
@chubes4
chubes4 force-pushed the fix/nav-skip-runtime-overlay branch from 5d438f4 to 03bac8f Compare September 16, 2026 13:43
@chubes4
chubes4 merged commit 251778e into trunk Sep 16, 2026
10 checks passed
@chubes4
chubes4 deleted the fix/nav-skip-runtime-overlay branch September 16, 2026 13:53
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