-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Dataviews] Fix: Media item focus style is not visible on Grid. #67789
[Dataviews] Fix: Media item focus style is not visible on Grid. #67789
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: +122 B (+0.01%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
} | ||
&.is-selected .dataviews-view-grid__media::after, |
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 works for me, but I welcome feedback from design: in the grid view, do we need to distinguish from a "selected" state and from a "focused" state? (I presume this would be fine to tweak as a follow-up if necessary)
Selected | Focused |
---|---|
cc @jameskoster
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 for the ping. The focus treatment should utilise the var(--wp-admin-border-width-focus)
(1.5px
) stroke width. The stroke for the selected item should be only 1px
.
6bd5abf
to
e381324
Compare
e381324
to
9bb35cf
Compare
Fixes an issue noticed by @oandregal at #67690 (comment).
Currently, the grid item media button does not communicate that the item is focused. This PR solves the issue by applying a blue border to the focused item.
Screenshots
Testing Instructions
Go to
wp-admin/site-editor.php?p=%2Fpage&layout=grid
.Focus the search field tab until you focus a grid item and verify it has a focus style.