-
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
Reusable Block icon discrepancy #46441
Comments
The icon in the inserter is showing whatever the outer block is; i.e. if the reusable block is a single paragraph it shows a paragraph. |
We should consider if these should be BlockPreview driven anyhow. |
We used to have previews but were disabled due to performance issues. If I recall correctly it predated async loading, so might be time to revisit. |
This one tripped me up again today. It seems quite likely that Reusable Blocks will often be wrapped in containers, and seeing a mixture of Row, Stack, Group icons doesn't seem super helpful. I'd place more value in presenting each with the same icon regardless, but if the current behaviour is preferred I'm happy to close this. cc @WordPress/gutenberg-design for feedback. |
I think the main issue here is if you have 10 or 20 reusable blocks in the RB tab, having the same icon for all of those will be useless. What if we showed the RB generic icon in block toolbar, inspector, list view, but showed the outer wrapper icon only in the inserter? Otherwise I'd actually be tempted to go the other route: show the outer wrapper icon everywhere and repurpose the two diamond icons for templates and template parts respectively. What do you think? Related: #35453 |
Now that you mention it, how useful are those icons in general? They seem significantly less helpful than the name / preview, which makes me wonder whether we should present reusable blocks the same way we present patterns: I guess we'll explore that in more detail as a part of #48458. So in the mean time I'd vote establishing consistency between what you see in the Inserter, and what you see everywhere else. No strong feeling as to whether that means using the container block icon like you suggest, or the reusable block icon. |
Reusable blocks now appear in the Patterns tab, so I think this can be closed. |
The Inserter tab, block toolbar, and Inspector all use the same icon (
symbol
), but the buttons in the Inserter use thegroup
icon. They should probably be consistent?The text was updated successfully, but these errors were encountered: