Skip to content

🎨 Palette: Fix sticky header overlap with scroll-padding-top#30

Open
remimixo wants to merge 1 commit into
mainfrom
palette-scroll-padding-fix-699991245421992182
Open

🎨 Palette: Fix sticky header overlap with scroll-padding-top#30
remimixo wants to merge 1 commit into
mainfrom
palette-scroll-padding-fix-699991245421992182

Conversation

@remimixo

@remimixo remimixo commented Jun 3, 2026

Copy link
Copy Markdown
Member

This PR addresses a common micro-UX issue where the 64px sticky navigation bar overlaps the top of sections when navigating via internal anchor links (e.g., clicking 'Features' or 'About').

💡 What: Added scroll-padding-top: 64px; to the global html selector.
🎯 Why: To ensure that section titles are clearly visible below the header after an anchor navigation, improving the clarity and flow of the user journey.
Accessibility: Improves keyboard and screen reader navigation by ensuring the visual focus and destination content are not hidden behind UI chrome.

Verified with Playwright: The #features section now scrolls to exactly 63.6px from the top (accounting for sub-pixel rendering), perfectly clearing the 64px header.


PR created automatically by Jules for task 699991245421992182 started by @christopherfoxjr

Added \`scroll-padding-top: 64px;\` to the \`html\` element in \`index.html\` to ensure that content is not obscured by the sticky navigation bar when navigating via anchor links.

Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying cybr with  Cloudflare Pages  Cloudflare Pages

Latest commit: a01a458
Status: ✅  Deploy successful!
Preview URL: https://6377b52a.cybr.pages.dev
Branch Preview URL: https://palette-scroll-padding-fix-6.cybr.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying foxos with  Cloudflare Pages  Cloudflare Pages

Latest commit: a01a458
Status: ✅  Deploy successful!
Preview URL: https://a1257474.foxos.pages.dev
Branch Preview URL: https://palette-scroll-padding-fix-6.foxos.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying wolfos with  Cloudflare Pages  Cloudflare Pages

Latest commit: a01a458
Status: ✅  Deploy successful!
Preview URL: https://4f705d63.wolfos.pages.dev
Branch Preview URL: https://palette-scroll-padding-fix-6.wolfos.pages.dev

View logs

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.

1 participant