-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: fix color and behavior of unsynced patterns in block inserter when searching for reusable
#53205
Patterns: fix color and behavior of unsynced patterns in block inserter when searching for reusable
#53205
Conversation
Size Change: +46 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
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.
Thanks @glendaviesnz 👍
✅ Unsynced patterns in the inserter search results no longer have the synced block color
✅ Unsynced patterns are inserted as their parsed blocks
✅ Synced patterns continue to have the same color in the inserter search results
✅ Synced patterns are inserted as the pattern block
LGTM 🚢
What?
Makes sure unsynced patterns have an uncolored icon when displayed in inserter search results. Also make sure that they get inserted as an unsynced pattern when selected.
Why?
Currently they show as purple which confuses them with synced patterns.
How?
Checks the syncStatus of a pattern and don't assign color if
unsynced
. Also, ifunsynced
instert the parsed pattern content rather than the pattern block when selected.Testing Instructions
reusable
and make sure the unsynced patterns display as black, and synced as purpleScreenshots or screencast
Before:
pattern-inserter-bug-before.mp4
After:
patterns-inserter-bug.mp4