Skip to content

fix: match overscroll color to header/footer#1007

Open
claude[bot] wants to merge 1 commit intomainfrom
claude/issue-383-20260323-2152
Open

fix: match overscroll color to header/footer#1007
claude[bot] wants to merge 1 commit intomainfrom
claude/issue-383-20260323-2152

Conversation

@claude
Copy link

@claude claude bot commented Mar 23, 2026

Description

When overscrolling the page (e.g., rubber-banding on macOS/iOS), white was shown instead of the header/footer colors. This fix applies a fixed CSS gradient on the <html> element so overscroll areas match the header color at the top and footer color at the bottom.

Related Issues

Closes #383

Key Changes

  • Added a background rule on html in globals.css using a fixed linear gradient split 50/50 between var(--header) and var(--footer)
  • Uses background-attachment: fixed so the gradient stays viewport-relative
  • The body's existing bg-background covers the gradient during normal scrolling — it only becomes visible during overscroll
  • Works automatically with all tenant themes since it uses the same CSS variables

How to test

  1. Visit any tenant site (e.g., nwac.localhost:3000 or sac.localhost:3000)
  2. On macOS: scroll past the top of the page (rubber-band) — should show the header color
  3. Scroll past the bottom of the page — should show the footer color
  4. Verify normal page scrolling looks unchanged

Future enhancements / Questions

  • If a tenant ever needs header and footer colors that look odd when split 50/50, the gradient split could be adjusted, but the current approach should work well for all existing themes.

🤖 Generated with Claude Code

Apply a fixed linear gradient on the <html> element using the existing
--header and --footer CSS variables. The body's bg-background covers it
during normal scrolling, so the gradient only shows during overscroll —
header color at the top, footer color at the bottom.

Closes #383

Co-authored-by: Kellen Busby <busbyk@users.noreply.github.com>
@github-actions
Copy link
Contributor

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.

Page overscroll should be the same color as the header/footer

1 participant