fix: match overscroll color to header/footer#1007
Open
claude[bot] wants to merge 1 commit intomainfrom
Open
Conversation
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>
Contributor
|
Preview deployment: https://claudexissue-383-20260323-2152.preview.avy-fx.org |
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.
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
backgroundrule onhtmlinglobals.cssusing a fixed linear gradient split 50/50 betweenvar(--header)andvar(--footer)background-attachment: fixedso the gradient stays viewport-relativebg-backgroundcovers the gradient during normal scrolling — it only becomes visible during overscrollHow to test
nwac.localhost:3000orsac.localhost:3000)Future enhancements / Questions
🤖 Generated with Claude Code