Restore sidebar state when resizing a window #5586
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
This appears to be a regression per the merge of the in-progress sidebar API.
If you have the sidebar toggled, then resize the window to be small, the sidebar is untoggled. This is in contrast to the previous behavior, where the sidebar state was not untoggled, the editor just entred into a mobile state, where the sidebar is a modal.
The problem is, that the sidebar should be enabled by default on a vanilla out-of-the-box WordPress install. This is key in order for users to learn that if you dismiss the sidebar by pressing the X in the top right corner of the sidebar, you can see that the cog icon is untoggled in the editor bar. This teaches users how to get the sidebar back (and we can show a pointer as well). If a user simply resizes the viewport and it disappears, this connection is less likely to happen.
Ideally the sidebar would be restored when you return to the desktop breakpoint, unless you explicitly toggle it off.
The text was updated successfully, but these errors were encountered: