Repository navigation
fix(docsite): prevent home hero showing through on overscroll - #3032
Merged
Merged
Conversation
The home page hero uses a pin-and-cover effect where the hero band, nav backdrop, aurora glow, and floating cards are position:fixed and the showcase surface scrolls over them. Those fixed layers stay pinned to the viewport for the whole page, so the elastic rubber-band overscroll at the top/bottom lifted the in-flow content and exposed them behind the footer. Set overscroll-behavior-y: none on the document scroller (the (site) layout uses AppShell height="auto", so html owns the scroll) to remove the bounce so the fixed layers can no longer be revealed. Co-authored-by: Cursor <[email protected]>
rubyycheung
requested review from
cixzhang,
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
June 24, 2026 04:47
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
🚀 Vercel Preview Deployment
|
Co-authored-by: Cursor <[email protected]>
josephfarina
approved these changes
Jun 24, 2026
imdreamrunner
added a commit
that referenced
this pull request
Aug 24, 2026
apps/docsite/src/app/globals.css disabled overscroll on <html> app-wide to stop the home hero's position:fixed layers showing through the top/bottom overscroll gap (#3032). overscroll-behavior-y: none is also how you turn pull-to-refresh off, and the rule is unscoped, so pull-to-refresh was dead on every route of the docsite on every touch browser. Below 1024px the hero barely pins at all: heroContent is relative, the floating-cards stage is display:none, and the nav backdrop is a 48px strip at the very top that never reaches the bottom gap. The one layer that did was HeroThemeReel's backdropGlow — position:fixed, 1050px tall, block at all widths — which spanned the viewport for the entire page scroll. Bound the glow to heroScope below 1024px (absolute, top:0 — heroScope already starts below the header), exactly the switch heroContent makes in page.tsx, and scope the overscroll rule to >=1024px where the hero is genuinely pinned. Fixes #5392
This was referenced Aug 24, 2026
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
position: fixed, and the showcase surface scrolls up over them. Those fixed layers stay pinned to the viewport for the entire page, so the elastic overscroll at the top/bottom lifts the in-flow content and exposes them behind the footer.overscroll-behavior-y: noneon the document scroller. The(site)layout usesAppShell height="auto", sohtmlowns the scroll. This removes the rubber-band bounce so the fixed layers can never be revealed.This is a docsite-only change (
@astryxdesign/docsiteis private/ignored for releases), so no changeset is included.Test plan
pnpm -F @astryxdesign/docsite dev) and open the home page.Notes
overscroll-behaviorreliably stops the bounce on desktop browsers (where this was reported). On iOS Safari the document-level rubber-band can still occur in some cases; if we want it bulletproof there, the alternative is bounding the fixed hero layers to the hero region (larger change to the tuned pin-and-cover).Made with Cursor