-
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
Remove redundant block name from "settings" panels #40275
Remove redundant block name from "settings" panels #40275
Conversation
Size Change: -66 B (0%) Total Size: 1.22 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot the (disabled) Table of Contents block, but otherwise LGTM.
Technically, everything in the inspector is "Settings", so maybe "General" would be a more useful name, but I think this PR is already an improvement over trunk
.
Thank you all for the feedback and reviews! I'll restart the test and see if it can land. I do agree that there's more work we can do here. In some cases, a "Settings" panel itself is redundant, especially for blocks that have very few and very specific options: the need to be able to collapse a panel is likely to never be used. This idea for a "child pages" toggle on the Page List never materialized and the mockup is obsolete, but it does show how in some cases a whole panel just for one toggle itself feels redundant: "General" or another label could also benefit. I wanted to start very simple, though, and since many blocks have "Settings" panels, the word is likely to be well translated by now. So this could be seen as a first step. Finally, there's #40204 to consider. If you don't mind, I'll land this one when the checks pass, but I'm happy to do followups. |
We should also take the case of plugins that can extend the Settings panel with general settings related to blocks. In general, we should seek ways to make it more organized so user can customize what's exposed by default like it's possible with Global Styles related sections. |
Yes, just like there's an effort to have a single and reused Dimensions panel across blocks (#28356), it makes sense to have a space for general block settings that might be unique to that one particular block. Whether it needs to be able to collapse or not, I don't know, and I imagie 40204 could also further that discussion. |
What?
Across the core block library, we have numerous settings panels containing various block-specific controls, many of which are named
[block name] settings
, for example "Media & Text settings", "Latest Comments settings" or "Archives settings".Aside from being clunky to read, the block name is redundant since it's the top card of the block inspector, shown right above the very same panel:
This PR removes the block name across virtually all blocks in the library. In addition, it fixes a few inconsistencies where some panels would use sentence case, some would use title case, and still others would use sentence case but with blocks capitalized.
Why?
In reducing redundancy, it reduces noise, and allows for a generic "Settings" panel to be consistent across blocks.
Testing Instructions
Test the block inspectors for the following blocks:
Screenshots or screencast
The following screenshots all show the inspector with this PR applied: