-
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
Title for the section still renders when editor panels are removed from UI #11923
Comments
Is this issue still valid @gziolo Greg? |
@ntsekouras, is it something that can be closed after the most recent refactoring applied in #28329? |
Problem is still there 😞 - I hadn't checked that. |
I can confirm this is still an issue in 6.0. Snippet for testing.const panels = ['post-link', 'template', 'taxonomy-panel-category', 'taxonomy-panel-post_tag', 'featured-image', 'post-excerpt', 'discussion-panel', 'page-attributes'];
panels.forEach( (panel) => wp.data.dispatch('core/edit-post').removeEditorPanel(panel) ); Screenshot |
Removing the "Good First Issue" label, as we found out that this isn't an easy fix 😅 |
Following up from the comment here: https://github.com/WordPress/gutenberg/pull/29207/files#r581002056 I think this should now be possible using the CSS |
It seems the css solution has been implemented already, so I'm closing this issue. |
Discovered when working on #11802.
When you remove all panels programmatically, the section title in the Options dialog is still there.
You can reproduce by pasting the following code and executing in JS console:
and opening Options modal from the More Menu.
@noisysocks shared some ideas how this could be fixed:
The text was updated successfully, but these errors were encountered: