-
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
Template part selection popover - minor style updates for visiblity. #33733
Template part selection popover - minor style updates for visiblity. #33733
Conversation
Size Change: +757 B (0%) Total Size: 1.08 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.
It's a lot better but it still looks odd 🤔 I have no idea how we could improve it thought.
As a first iteration, it's good to go!
I agree.
I think it might be nice to update this component to somewhat match the style of the patterns placeholder setup component. 🤔 However, there were some concerns with that component both in a11y and user perception and discussions about it being moved to a modal or redesigned in other ways... so its probably best to wait for that to settle in a more permanent state before updating this to match it. |
Description
Related to discussion in #29950. This PR adds some minor style changes to make previews more visible in the selection popover. While we may still need to reconsider the selection flow/component in the future, these minor changes should help improve the readability of the current state until a new design is introduced.
Currently on trunk, there are no borders (save hover and focus) to the items or background to the selection, making it difficult to tell where one preview starts and the other begins:
Here we try adding a gray border to allow the previews to stand out together with their title:
How has this been tested?
Test the template part selection component in the site and post editors. This can be accessed from a placeholder block's (insert header, footer, or template part) "Choose existing" option, or the "replace" option in the block toolbar of an existing template part.
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).