Skip to content

Content Classification: Align suggestion pill focus styles with the core Button - #1060

Merged
dkotter merged 1 commit into
WordPress:developfrom
yogeshbhutkar:fix/classification-suggestion-focus
Sep 25, 2026
Merged

dkotter merged 1 commit into
WordPress:developfrom
yogeshbhutkar:fix/classification-suggestion-focus

Conversation

@yogeshbhutkar

@yogeshbhutkar yogeshbhutkar commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

What, Why, and How?

The Content Classification suggestion pills styled their focus state with :focus. That selector has lower specificity than the core Button's .components-button:focus:not(:active), which now draws a visible outset focus outline. As a result, the core outline overrode ours. The pill's overflow: hidden clipped that outline everywhere except where the accept and dismiss buttons meet, which left a stray mark next to the inset focus ring. The pills also kept showing their focus ring while pressed, unlike other buttons. This PR changes the accept and dismiss button selectors to &:focus:not(:active), the same selector used upstream.

Use of AI Tools

AI assistance: Yes
Tool(s): Cursor
Model(s): Claude Opus 5.5
Used for: Generating the PR description.

Screenshots

Before After
before after

Changelog Entry

Fixed - Aligned the focus styles of Content Classification suggestion pills with the core Button component.

Open WordPress Playground Preview

@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.87%. Comparing base (ff481a2) to head (9442a9b).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #1060   +/-   ##
==========================================
  Coverage      80.87%   80.87%           
  Complexity      2998     2998           
==========================================
  Files            124      124           
  Lines          11987    11987           
==========================================
  Hits            9695     9695           
  Misses          2292     2292           
Flag Coverage Δ
unit 80.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yogeshbhutkar
yogeshbhutkar marked this pull request as ready for review September 25, 2026 08:37
@yogeshbhutkar
yogeshbhutkar requested a review from a team September 25, 2026 08:37
@github-actions

Copy link
Copy Markdown

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@dkotter dkotter added this to the 1.4.0 milestone Sep 25, 2026
@dkotter
dkotter merged commit 0c4b71e into WordPress:develop Sep 25, 2026
35 of 36 checks passed
@yogeshbhutkar
yogeshbhutkar deleted the fix/classification-suggestion-focus branch September 28, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants