-
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
Show list of patterns in template part sidebar in focus mode #47507
Conversation
@@ -57,6 +57,10 @@ | |||
min-width: auto; | |||
} | |||
} | |||
|
|||
& .block-editor-block-patterns-list__item .block-editor-block-preview__container { | |||
border: 1px solid $gray-300; |
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.
What would be a good mechanism to highlight patterns when they are not hovered/selected? I found that if the pattern has a white background it does not stand out of its own in the list.
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.
How about the box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
that we use in other similar situations (like the color indicators).
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.
We might consider making a var for that, if we're going to start using it in different places.
blockPatterns={ blockPatterns } | ||
shownPatterns={ blockPatterns } | ||
onClickPattern={ ( pattern ) => { | ||
console.log( 'pattern clicked ', pattern ); |
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.
TODO: need to implement actually replacing the template part with the pattern's content.
Size Change: +258 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
It's been a few months since I worked on this. Going to close it for now and free the issue at #44582 for anyone to take. I may be able to come back at this in a couple of weeks if I manage to wrap up other things in my queue. |
What
Implements #44582
Related #45285
TODO
Testing instructions