Skip to content

Feature: Ctrl + Click on blocks <PanelBody/> to open/close all the panels #13058

Open

Description

Is your feature request related to a problem? Please describe.
When developing huge blocks that need a lot of configuration, you end up quickly with a lot of fields to manage (fields that are in the most cases wrapped inside Panel).
If the Panel aren't collapsed, it can take a "while" to find the input you want inside huge forms.

The props initialOpen can be use when you are coding your own blocks to suit your needs, but you also can use block librairies and you wouldn't have this possible option.

Describe the solution you'd like
I prefere when all panels are collapse at page load. (And some people don't, of course!).

I think one of the best solutions would be to add an action with Ctrl + Click on the Panel header to collapse all blocks at the same time.
This can allow a quick navigation inside the sidebar, for both use cases/preferences.

For me this would be a great feature, and maybe also a great feature for the people who get collapsed blocks when they don't want to!

(Thx guys, Gutenberg is great)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs Accessibility FeedbackNeed input from accessibilityNeed input from accessibilityNeeds Design FeedbackNeeds general design feedback.Needs general design feedback.[Feature] UI ComponentsImpacts or related to the UI component systemImpacts or related to the UI component system[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.A suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions