-
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
Template Sidebar Panel: Content panel shows even when it is empty #64472
Comments
@carolinan I would like to work on this issue. |
@shreya0204, I think this needs design decision/feedback first. |
I don't think so - people could get confused when they cannot find the panel where they would expect it to be.
Makes me think if "Content" is really the best title for the panel, but there was for sure already some discussion about it. ("Synced content" would be a little bit more descriptive, I think) |
I like the text suggestions. |
Whichever approach we choose, I think we should consider consistency with the Design panel: Currently, the Design panel is hidden if no patterns are available:
If a placeholder is appropriate, I think the same approach should be applied to the Design panel. |
@t-hamano In that case, should I add placeholders for both or hide content panel if no patterns available? |
@shreya0204 Personally I'm leaning towards hiding the panel itself. I'd like to hear from the @WordPress/gutenberg-design team as well. |
I've been thinking about elevating and improving the contentOnly experience which is currently very under-developed (#60021). The origin of the content panel was from that feature. It's also now used for synced patterns with overrides, and template parts. But the panel aside, the goal of it is to make editing the block easy, and if the panel doesn't accomplish that, then it could be worth exploring a different interface. Is that simply surfacing all available controls directly in the panel? Is it something else? Ultimately contentOnly should be about making it easy to edit what's there. All that is to say, depending on where those explorations might or might not go, we might even look at retiring the content panel in the future, in favor of something better. To that end, I'd support Aki's suggestion that if it's empty, don't show it. |
I'm +1 for hiding parts of the UI which do not have purpose. |
Thanks for the feedback! @shreya0204 I think we could go for an approach where we don't show the Content panel if it's not available. |
@t-hamano Raised PR for the same. |
Description
In the Site Editor, when editing a template and the Template panel is opened in the sidebar, I see an empty Content panel.
Should this empty panel be hidden if there is no Content?
I only see the empty content panel if Gutenberg is active.
Step-by-step reproduction instructions
Activate Twenty Twenty-Four.
Go to Appearance > Editor.
Open the editor, editing for example Blog Home.
Delete the header and footer template parts from the template.
Open the settings sidebar.
Open the Template panel.
Check if there is an empty Content panel.
Screenshots, screen recording, code snippet
Environment info
Tested with and without Gutenberg trunk
WordPress 6.6.1.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: