fix(a11y): improve focus visibility on suggested terms#580
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #580 +/- ##
==========================================
Coverage 71.41% 71.41%
Complexity 1158 1158
==========================================
Files 67 67
Lines 5586 5586
==========================================
Hits 3989 3989
Misses 1597 1597
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
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. |
jeffpaul
left a comment
There was a problem hiding this comment.
Tested and works as expected/described, thanks!
Fixed - Improve keyboard focus visibility for suggested term actions in content classification. Co-authored-by: CookieDarb <sakshamsharma5@git.wordpress.org> Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>

What?
Closes #570
This PR improves the focus visibility of the suggested term and dismiss buttons inside the Suggested Terms taxonomy pills for keyboard users.
Why?
Previously, keyboard users could not discern which button within a suggested taxonomy pill had focus. This improves accessibility and focus clarity.
How?
Added explicit focus styles to the suggested-term action buttons so the focused state is clearly visible, using existing WordPress admin theme variables for consistency.
Use of AI Tools
AI assistance: Yes
Tool(s): Antigravity
Model(s): Gemini 3.1 Pro, Gemini 3 Flash
Used for: Suggesting and implementing the fix. Final implementation was reviewed and edited by me.
Testing Instructions
Screenshots or screencast
Add button is focused:

Dismiss button is focused:

Changelog Entry