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

polish: prevent pop navigation on back if navbar sidebar is open #5485

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Sep 3, 2021

Motivation

Follow-up of #5462

Seems like people think it's better to prevent the navigation
https://twitter.com/sebastienlorber/status/1433424873955610639

cc @lex111

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

preview

@slorber slorber added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Sep 3, 2021
@slorber slorber requested a review from lex111 as a code owner September 3, 2021 15:05
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Sep 3, 2021
@netlify
Copy link

netlify bot commented Sep 3, 2021

✔️ [V2]

🔨 Explore the source changes: fb8b296

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/613239a5eec6070008eaa88b

😎 Browse the preview: https://deploy-preview-5485--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 78
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5485--docusaurus-2.netlify.app/

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

Size Change: 0 B

Total Size: 826 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 36.7 kB
website/build/assets/css/styles.********.css 93.9 kB
website/build/assets/js/main.********.js 414 kB
website/build/blog/2017/12/14/introducing-docusaurus/index.html 67 kB
website/build/blog/index.html 38.1 kB
website/build/docs/index.html 44.6 kB
website/build/docs/installation/index.html 52.8 kB
website/build/index.html 30.8 kB
website/build/tests/docs/index.html 25.4 kB
website/build/tests/docs/standalone/index.html 23 kB

compressed-size-action

Copy link
Contributor

@lex111 lex111 left a comment

Choose a reason for hiding this comment

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

Alright, although it seems still strange to me.

@slorber
Copy link
Collaborator Author

slorber commented Sep 3, 2021

We can remove it or making it optional if people complain about this behavior

@slorber slorber merged commit 28d2d6a into main Sep 3, 2021
@slorber slorber deleted the slorber/prevent-nav-on-drawer-back branch September 3, 2021 16:31
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.

None yet

3 participants