Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): disable scroll while mobile menu open #2129

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Dec 16, 2019

Motivation

As a rule, it is customary to disable scrolling of body on the webpage when the mobile menu is open, since it itself may have scrolling.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

  1. Open preview website on mobile
  2. Click to sidebar button
  3. Try scrolling the webpage

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 16, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit e341c0c

https://deploy-preview-2129--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit e341c0c

https://deploy-preview-2129--docusaurus-preview.netlify.com

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

Typically I would use a class, but I think this is fine in this case as it might not apply to everyone. Thanks!

@yangshun yangshun added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Dec 18, 2019
@yangshun yangshun merged commit 5716953 into facebook:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants