fix: mobile left side nav scrolls when content exceeds viewport#7
Closed
Copilot wants to merge 3 commits into
Closed
fix: mobile left side nav scrolls when content exceeds viewport#7Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/wintermuted/ui-theme/sessions/deacfca6-b897-4364-84f5-10c4f1579aae Co-authored-by: wintermuted <2337325+wintermuted@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wintermuted/ui-theme/sessions/deacfca6-b897-4364-84f5-10c4f1579aae Co-authored-by: wintermuted <2337325+wintermuted@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wintermuted/ui-theme/sessions/deacfca6-b897-4364-84f5-10c4f1579aae Co-authored-by: wintermuted <2337325+wintermuted@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
wintermuted
May 5, 2026 05:48
View session
Contributor
|
🚀 PR Preview deployed!
Run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the mobile left sidebar nav (
.docs-sidebar) not scrolling when opened as a drawer on viewports ≤ 1000 px.Root cause
Two related issues:
Body scroll interception — when the sidebar drawer was opened,
bodyremained scrollable. On mobile, touch-scroll events were captured by the body instead of the fixed sidebar overlay, so the sidebar appeared frozen even thoughoverflow-y: autowas set on it.No overscroll containment — once a user reached the top or bottom of the sidebar, the scroll event would chain to the body (rubber-band / momentum scroll on iOS), reinforcing the illusion that the sidebar itself was not scrollable.
Changes (
showcase/showcase.css, inside@media (max-width: 1000px))overscroll-behavior-y: containadded to.docs-sidebarbody.docs-sidebar-open { overflow: hidden }addedNo changes to component stylesheets (
styles/) — this is a showcase/docs shell concern only.