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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user