Skip to content

Fix mobile nav scroll lock left stranded on resize to desktop#384

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 30, 2026
Merged

Fix mobile nav scroll lock left stranded on resize to desktop#384
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

No description provided.

* fix(docs): release mobile nav scroll lock on resize

The marketing site mobile nav locked body scroll on open and only released
it when the menu closed via a state change. Widening the window past the md
breakpoint hid the menu via CSS without closing it, so the scroll lock was
stranded and the desktop page became unscrollable.

Rebuild the menu on the shadcn Sheet (Radix Dialog), which owns the focus
trap, Escape handling, and body scroll lock and releases all three on close.
Add a matchMedia listener that closes the sheet when crossing into desktop
width. Present it as a bottom drawer with an icon and label on every row and
a content-aligned close button.

* fix(docs): contain overscroll on mobile nav drawer

Add overscroll-contain to the Sheet drawer's scroll container so touch
overscroll can't chain to the locked body when the nav exceeds the
viewport.

GitOrigin-RevId: 84403240c4b3c0e71565cb6e889c47e5e8e9d110

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28412077393). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit 49bd1e0 into main Jun 30, 2026
1 check passed
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 30, 2026 00:37
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