-
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
Should "Border & Shadow" panel label include "border" if border is not supported? #58907
Comments
cc @WordPress/gutenberg-design for thoughts here. I agree this is confusing! |
I believe that PR #58776 will address this issue, but waiting for confirmation (see comment). |
I agree the scenario described is confusing. Adding logic to adjust panel titles doesn't seem great though... I guess this raises the question about whether Border and Shadow (Effects) should be separate panels, but that's another conversation. |
Border & shadow feel connected to me, enough that they belong together. What's your main concern with adjusting panel titles? I feel that's the best path forward. |
How about changing it to a more abstract title like "Outline" or "Frame" or "Contour" like the other panels? |
Mostly the resulting inconsistencies. I feel panel headings should be immutable for immediate recognition across contexts. Not to mention documentation. Making one heading dynamic sets a precedent that they can all be dynamic. I don't want to derail the conversation, but I'd lean towards something like the Figma approach; a dedicated panel for border, then something more abstract like "Effects" for lesser-used features like shadows and filters. |
I hear you, to me it's no different than a panel being contextual to the block being selected. You could think of it as three panels if you like, border, border & shadow, and shadow. I know that doesn't address your concern. But the benefit of having a single panel, given the behavior and current design of panels that we have, IMO vastly outweigh the benefits of separate panels. If we had the same level of density as Figma does, things would be different. And they can be in the future, too, if we explore improvements to the inspector and panels, so I'd earmark that as something to consider. But until we have more density, it would just be more visual noise, more tab-stops, and dubious user benefit. |
I would +1 this |
Created #59358 where it sets the panel label based on the controls enabled. I guess we can move forward with this approach for 6.5 and keep this issue open for discussion on other ideas. |
Description
Not all themes support borders, so it can be confusing when a panel labeled Border and Shadow has no border controls.
I'm not sure if this is a bug, it felt unexpected to me, but I understand that consistency on the panel labels is also important.
Step-by-step reproduction instructions
On WordPress 6.5 alpha:
Activate a classic theme like Twenty Sixteen
In the block editor, add an image block.
Open the block settings panel, locate the "Border and Shadow" panel.
Now add a button:
Open the block settings panel, locate the "Border and Shadow" panel.
Compare the two experiences.
Screenshots, screen recording, code snippet
Environment info
WordPress 6.5-alpha-57580
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
The text was updated successfully, but these errors were encountered: