fix(8.J): close ARCHIVE dropdown on child link click

Add dd-nav-item-collapsed CSS class toggled on child click to override the
:hover/:focus-within show rules. Cleared on mouseleave so hover-to-open
works normally on the next pass. Mirrors the existing CloseMobileMenu pattern.
This commit is contained in:
daniel-c-harvey
2026-06-13 19:45:55 -04:00
parent add43c5a7d
commit c44117ccc5
2 changed files with 22 additions and 3 deletions
@@ -129,6 +129,15 @@
pointer-events: auto;
}
/* Force-close the dropdown immediately after a child link is clicked (SPA navigation
keeps the DOM and :hover may remain true). Cleared on mouseleave so the next
hover cycle works normally. */
.dd-nav-item-parent.dd-nav-item-collapsed .dd-nav-dropdown {
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
}
.dd-nav-dropdown-link {
white-space: nowrap;
}