-
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
Adjust pattern list items resting, hover, focus styles #61831
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -21 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
Flaky tests detected in 5c04dec. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9179617315
|
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.
In this PR, the focus style of the synced pattern also changes from the purple color to the primary color, which is intentional, right?
If so, the .block-editor-block-patterns-list__list-item-synced
class is no longer used, so we should be able to remove it here as well.
'block-editor-block-patterns-list__list-item-synced': |
outline: $border-width solid rgba($black, 0.075); | ||
outline-offset: -$border-width; | ||
border-radius: $radius-block-ui; | ||
transition: outline 0.1s linear; |
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.
transition: outline 0.1s linear; | |
transition: outline 0.1s linear; | |
@include reduce-motion("transition"); |
Yes, I don't think the focus color of previews should change based on the synced status. Within the canvas it's fine as you're selecting the actual entity, but within the inserter it's an element that adds the pattern/synced pattern. |
5c04dec
to
d121df3
Compare
* remove overrides * use outlines * move transition to focus Co-authored-by: richtabor <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: t-hamano <[email protected]>
* remove overrides * use outlines * move transition to focus Co-authored-by: richtabor <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
Tweaks to fix the various implementations of pattern list items to have the same resting, hover, and focus styles as other related elements. Also forwards #61518.
Testing Instructions
Screenshots or screencast
Focus state is the admin blue.