Repository navigation
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
|
aaronrobertshaw
left a comment
There was a problem hiding this comment.
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
reusableScreenshots or screencast
Before:
pattern-icons-before.mp4
After:
icons-after.mp4