Skip to content

fix: nav dropdown closes before the pointer reaches it - #59

Merged
ronaldtse merged 1 commit into
mainfrom
fix/nav-dropdown-gap
Sep 6, 2026
Merged

fix: nav dropdown closes before the pointer reaches it#59
ronaldtse merged 1 commit into
mainfrom
fix/nav-dropdown-gap

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

The About dropdown hung 4px (mt-1) below its trigger — that margin is outside the hover chain, so moving the mouse from the link toward the panel dropped group-hover and the menu snapped shut. The old Vue menu hid this with a 150ms close delay; the CSS version exposed it.

Fix: wrap the panel in a top-full pt-1 bridge whose padding is part of the hover chain — the pointer path from trigger to panel never leaves group-hover. Closed state keeps pointer-events-none on the visible card so nothing beneath is blocked.

The dropdown panel hung mt-1 below its trigger, and that 4px margin was
a hover dead zone: leaving the link dropped :hover and the menu closed
mid-move. The old Vue menu papered over this with a 150ms close delay.

Wrap the panel in a top-full pt-1 bridge whose padding stays inside the
hover chain, so the trip from trigger to panel never breaks group-hover.
@ronaldtse
ronaldtse merged commit 56c9fd9 into main Sep 6, 2026
3 checks passed
@ronaldtse
ronaldtse deleted the fix/nav-dropdown-gap branch September 6, 2026 21:54
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