Repository navigation
DataViews: Use the design system focus ring for list items. - #85358
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Updated as activity occurs, without notifying anyone named here. Add the |
aa3d821 to
bbbf077
Compare
| outline: 2px solid transparent; | ||
| @include outset-ring__focus(); | ||
| // Keep the focus ring inside the item. | ||
| outline-offset: calc(-1 * var(--wpds-border-width-focus)); |
There was a problem hiding this comment.
@mirka here's another instance of negative offset
There was a problem hiding this comment.
I think this is find for the scope of this PR, we should decide how to tackle this pattern and apply changes in one go in a separate PR.
| outline: 2px solid transparent; | ||
| @include outset-ring__focus(); | ||
| // Keep the focus ring inside the item. | ||
| outline-offset: calc(-1 * var(--wpds-border-width-focus)); |
There was a problem hiding this comment.
I think this is find for the scope of this PR, we should decide how to tackle this pattern and apply changes in one go in a separate PR.
|
There was a conflict while trying to cherry-pick the commit to the wp/7.2 branch. Please resolve the conflict manually and create a PR to the wp/7.2 branch. PRs to wp/7.2 are similar to PRs to trunk, but you should base your PR on the wp/7.2 branch instead of trunk. |
1 similar comment
|
There was a conflict while trying to cherry-pick the commit to the wp/7.2 branch. Please resolve the conflict manually and create a PR to the wp/7.2 branch. PRs to wp/7.2 are similar to PRs to trunk, but you should base your PR on the wp/7.2 branch instead of trunk. |
|
@SainathPoojary do you mind creating a manual PR to backport this change to 7.2? I'll be happy to review that PR (also cc @t-hamano ) |
…s#85358) * DataViews: Use the design system focus ring for list items. * DataViews: Add Changelog Entry --- Co-authored-by: SainathPoojary <sainathpoojary@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…85435) * DataViews: Use the design system focus ring for list items. * DataViews: Add Changelog Entry --- Co-authored-by: SainathPoojary <sainathpoojary@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
|
This PR was backported to |






What?
Part of #80138.
Use the design system outline for keyboard focus on DataViews list items.
Why?
List items still use a legacy box-shadow focus ring with a separate high contrast fallback.
How?
Replace the shadow and transparent outline with
outset-ring__focus(). Use a negative outline offset to keep the ring inside the item.In high contrast mode, the inset focus ring is now separate from the row separators.
Testing Instructions
Screenshots or screencast
Before:
After:
Use of AI Tools
Implemented with assistance of Github Copilot