Always open List View: disable sidebar animation when preference is enabled #69240
Open
2 of 6 tasks
Labels
[Feature] List View
Menu item in the top toolbar to select blocks from a list of links.
Needs Design Feedback
Needs general design feedback.
[Package] Interface
/packages/interface
[Type] Bug
An existing feature does not function as intended
Description
Noticed while working on #69147 / #69190
When the ''Always open List View:' preferences ie enabled, the sidebar animation on first page load is a very distrqacting and unexpected experience. As an useer, I don't want to see anything that 'moves' on my screen when the page loads.
The animation is even more noticeable and disturbing with browsers that make animations run 'smoother' for example with Safari. Video to illustrate the behavior with Safari:
Screen.Recording.2025-02-19.at.08.51.45.mov
To my understanding, the animation is set on the secondary sidebar in the
interface
package.gutenberg/packages/interface/src/components/interface-skeleton/index.js
Lines 166 to 201 in 90ee09a
So that the animation works on any panel within the sidebar, for example also for the main inserter. Only the List View panel has a preference to stay always open though.
Ideally, when 'Always open List View' is enabled, the animation should not run on first page load. After that, it should run when users close and reopen the list view manually.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: