-
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
Patterns: Show the default patterns icons for all pattern blocks in inserter #53208
Conversation
Size Change: +126 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
I have broken a unit test with this - will fix tomorrow |
Flaky tests detected in b5ce419. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5732180993
|
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.
LGTM 👍
✅ Quick inserter shows consistent icons for patterns
✅ Block inserter shows consistent icons when searching for patterns
Thanks @glendaviesnz. This is working for me ✅ |
Unit test fix looks good and now passes. The iOS failure looks unrelated so I've hit re-run on that one. Once we're all green we should be able to merge. |
It could be cool to show the icon purple in the quick inserter search results. Has this been considered? |
@JosVelasco yes, there's an open issue for updating the icon color: #53209 |
What?
Shows the default pattern icon for all user created patterns in the inserter
Why?
Currently the patterns attempt to show the outermost block icon which is confusing as it makes it hard to identify patterns in the inserter list.
Fixes: #51921
How?
Removes the code that tries to find the icon for the outermost block in a pattern and just defaults all to the standard pattern icon.
Testing Instructions
reusable
Screenshots or screencast
Before:
pattern-icons-before.mp4
After:
icons-after.mp4