-
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
Try new icons for reusable blocks and template parts. #34002
Conversation
Size Change: +295 B (0%) Total Size: 1.03 MB
ℹ️ View Unchanged
|
import { Platform } from '@wordpress/element'; | ||
import { reusableBlockType } from '@wordpress/icons'; |
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.
I think maybe we should call this one "symbol" and "symbol-filled" at the icon level
Thanks for the fix Nik, thanks for the review! I'll address Matías' comment and land this! |
Thank you all for the help landing this! 👌 |
👋 Im a bit confused on the Icon choice for "Template Part" here. Previously, the icons for template parts and their variations were very coherent and cohesive as a group. Header, Footer, and Sidebar icons are all of the same form with a different area filled in to distinguish them, while the generic "Template Part" icon was the same with no area filled in to distinguish the genericness of the non-variation version. Now, we have one icon for the generic version that has no relation whatsoever to the icons for its variations: |
In nesting contexts the previous icon was reported as confusing as its design suggested a particular layout that might not be leveraged by that particular generic template part at all. The new icon is intentionally generic as discussed in #33897 so as to clearly denote its special linked nature when shown in the list view. Your comment made me realize a bug, though — the generic icon is meant to also be used for header, footer and sidebar template parts when shown in the list view: But that doesn't appear to be the case currently: @ntsekouras can you help me make that happen? |
@jasmussen do you mean to remove the |
The latter, show the generic icon in toolbar, block card and list views. The icons still feel useful in cases like the area selector dropdown that's being proposed in #29295: |
@ntsekouras just to make sure #34002 (comment) doesn't fall off the radar, should I open a separate ticket for it? I'd be happy to pair on it. |
I went ahead and ticketed it in #35453. |
Description
Starts work on #33897 by adding new generic icons for template parts and reusable blocks.
For now, the PR adds the two new icons, and applies them to template parts and partially, reusable blocks:
As shown above, there's still some logic in the Reusable Block system that falls back to the
defaultBlock
icon, as shown above:Additionally, the
defaultBlock
is used for select mode:If you're familiar with the reusable blocks codebase, I'd appreciate your help in applying the new icon in those remaining place.
How has this been tested?
Template Parts and Reusable blocks, when used in the canvas, list view, and inspector, should leverage the new icons.
Checklist:
*.native.js
files for terms that need renaming or removal).