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

feat(v2): make dropdown menu collapsible on mobiles #3553

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Oct 7, 2020

Motivation

Currently on mobiles we have a dropdown menu always in an open state, which is a bit strange.
I suggest to make dropdown collapsed by default (expected behavior by analogy as desktop), and also always auto expanded when browsing active URL from dropdown items.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Before After
image image

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@lex111 lex111 added the pr: new feature This PR adds a new API or behavior. label Oct 7, 2020
@lex111 lex111 requested a review from slorber as a code owner October 7, 2020 21:46
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 7, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 21df142

https://deploy-preview-3553--docusaurus-2.netlify.app

test('should be false for compared path with double trailing slash', () => {
expect(isSamePath('/docs', '/docs//')).toBeFalsy();
});
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for the tests ;)

@slorber
Copy link
Collaborator

slorber commented Oct 8, 2020

LGTM 👍

@slorber slorber merged commit 7290183 into master Oct 8, 2020
@lex111 lex111 deleted the lex111/collapsible-dropdown-mobile branch October 16, 2020 18:40
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: new feature This PR adds a new API or behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants