Skip to content

fix(docsite): prevent home hero showing through on overscroll - #3032

Merged
rubyycheung merged 2 commits into
mainfrom
docsite/fix-home-overscroll
Jun 24, 2026
Merged

rubyycheung merged 2 commits into
mainfrom
docsite/fix-home-overscroll

Conversation

@rubyycheung

Copy link
Copy Markdown
Contributor

Summary

  • On the docsite home page, scrolling to the very bottom and over-scrolling (rubber-band) revealed the hero content behind the footer — "the header showing through in the back."
  • Root cause: the home hero uses a pin-and-cover effect where the hero band (wordmark, headline, CTAs), the nav backdrop strip, the aurora glow, and the floating cards are all 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.
  • Fix: set overscroll-behavior-y: none on the document scroller. The (site) layout uses AppShell height="auto", so html owns the scroll. This removes the rubber-band bounce so the fixed layers can never be revealed.

This is a docsite-only change (@astryxdesign/docsite is private/ignored for releases), so no changeset is included.

Test plan

  • Run the docsite locally (pnpm -F @astryxdesign/docsite dev) and open the home page.
  • Scroll to the very bottom and attempt to over-scroll/rubber-band past the footer — the page no longer bounces and the pinned hero (wordmark, cards, nav strip) no longer shows through behind the footer.
  • Do the same at the very top (over-scroll upward) — no fixed layers exposed.
  • Confirm normal scrolling, the hero pin-and-cover transition, anchor-link jumps, and the footer are all unaffected.

Notes

overscroll-behavior reliably 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

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]>
@vercel

vercel Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
astryx Ignored Ignored Jun 24, 2026 4:54am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 24, 2026
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit ea3f047
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

@rubyycheung
rubyycheung merged commit f4784f3 into main Jun 24, 2026
17 checks passed
@github-actions
github-actions Bot deleted the docsite/fix-home-overscroll branch July 12, 2026 06:57
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants