Skip to content
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

Cover block: consolidate settings into one panel and remove Settings #49241

Closed
annezazu opened this issue Mar 21, 2023 · 4 comments
Closed

Cover block: consolidate settings into one panel and remove Settings #49241

annezazu opened this issue Mar 21, 2023 · 4 comments
Labels
[Feature] Block API API that allows to express the block paradigm. [Feature] Blocks Overall functionality of blocks [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

Description

With the addition of split settings #40204 followed by the work to consolidate the settings when there's only an Advanced section #47463, the Cover block shouldn't show split options. Right now, it does. Adding to 6.2 board since this was introduced in this release cycle.

Step-by-step reproduction instructions

  1. Add a cover block.
  2. Notice that the settings are split but the settings tab only shows advanced section.

Screenshots, screen recording, code snippet

Screen Shot 2023-03-21 at 10 35 33 AM

Environment info

  • WP 6.2 RC2
  • No GB

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@annezazu annezazu added [Type] Bug An existing feature does not function as intended [Feature] Block API API that allows to express the block paradigm. [Feature] Blocks Overall functionality of blocks [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi labels Mar 21, 2023
@annezazu annezazu moved this to 📥 Todo in WordPress 6.2 Editor Tasks Mar 21, 2023
@annezazu
Copy link
Contributor Author

annezazu commented Mar 21, 2023

@ndiego correctly noted that this is because when you add an image settings, the advanced sections is that used:

Screen Shot 2023-03-21 at 10 46 42 AM

I wonder if there's a way to grey out these options? Unclear but leaving open for now! @jasmussen in case you have more thoughts here.

@richtabor
Copy link
Member

richtabor commented Mar 21, 2023

There are now layout controls under the block's settings tab in trunk (#45326). There's no real feedback with them available as a placeholder state though (don't think it warrants adding/removing tabs based on placeholder state).

CleanShot 2023-03-21 at 17 16 10

When its supported.

@jasmussen
Copy link
Contributor

Thanks for creating the issue, and for all the detailed followup. I initially reproduced this on 6.1 + the latest (as of a couple of days ago) Gutenberg plugin.

It was a bit of a quick observation, I will note — but my immediate instinct was: something's not working, because the tabs inspector tabs are only supposed to show if there are settings panels in addition to the Advanced panel.

With these followup notes, however, it's clear that cover has both layout, and when an image is used, "Image settings" (which on a small detail note we could just call "Image", perhaps even "Background").

Just confirming:
Screenshot 2023-03-22 at 08 47 43

Screenshot 2023-03-22 at 08 48 26

In that light, I'd happy to close this one, as the plugin experience should be correct again next release.

@annezazu
Copy link
Contributor Author

What you show above seems to be correct. While the initial issue is what will ship with 6.2, this ensures iteration in the future via the plugin. Closing out!

@github-project-automation github-project-automation bot moved this from 📥 Todo to ✅ Done in WordPress 6.2 Editor Tasks Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm. [Feature] Blocks Overall functionality of blocks [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

No branches or pull requests

3 participants