Skip to content

Conversation

@RPDeshaies
Copy link
Contributor

This PR fixes a layout shift happening when opening the Support dropdown menu in the header, which affected the body's scrollbar. The scrollbar styling was attached to the html element and not the body one.

I also updated the style to use the scrollbar-gutter: stable property to mimic Mac's scrollbar behavior on all browsers.

@RPDeshaies RPDeshaies requested a review from Copilot July 2, 2025 13:47
@RPDeshaies RPDeshaies self-assigned this Jul 2, 2025
@netlify
Copy link

netlify bot commented Jul 2, 2025

Deploy Preview for keeper-farirpgs ready!

Name Link
🔨 Latest commit e1dbadc
🔍 Latest deploy log https://app.netlify.com/projects/keeper-farirpgs/deploys/6867e63d4ceb390008dc4494
😎 Deploy Preview https://deploy-preview-21--keeper-farirpgs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a layout shift caused by the body scrollbar toggling when opening the Support dropdown by moving scrollbar-related styles from the html element to body and introducing a stable gutter.

  • Relocates scroll-behavior: smooth and overflow-y from html to body.
  • Adds scrollbar-gutter: stable on body for consistent scrollbar space.
  • Cleans up the now-empty html rule.
Comments suppressed due to low confidence (1)

src/styles/global.css:58

  • Consider adding a visual regression test or manual QA step to verify that the scrollbar-gutter: stable setting correctly prevents layout shifts across major browsers.
  scrollbar-gutter: stable;

Comment on lines 51 to +53
html {
scroll-behavior: smooth;
overflow-y: scroll;
}

Copy link

Copilot AI Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The html rule is now empty since its scroll-related properties were moved. You can remove this selector entirely to keep the stylesheet clean.

Copilot uses AI. Check for mistakes.
@RPDeshaies RPDeshaies merged commit 1e74b31 into main Jul 4, 2025
5 checks passed
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.

2 participants