-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update navigation sidebar responsiveness #36638
Conversation
Size Change: +31 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the <Editor>
is also using defaultIsOpen
and we will want to change it to isDefaultOpen
there too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't re-open when going back from mobile to desktop. I don't know if this bit is quite right, but when testing I felt like the site editor should have the same closing behavior as the listing page.
Yeah I think that might be worth trying. It's worth noting that if you open a panel in the editor (like global styles) and resize down / up, that panel will close on mobile and then re-open on desktop. So there's kind of a precedent for re-opening the W menu in the editor too.
8fcf85d
to
1fba741
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
1fba741
to
0bd0fab
Compare
* Close and open the nav sidebar in the list page * Remove superflouous prop * Tidy up effect
Description
Updates the way the navigation sidebar works based on #36597 (comment)
It works like this:
Video
Kapture.2021-11-19.at.16.57.36.mp4
Types of changes
Enhancement
Checklist:
*.native.js
files for terms that need renaming or removal).