Skip to content

Toolbar: Restore the color scheme text color on top-level label hover. - #12968

Closed
itzmekhokan wants to merge 1 commit into
WordPress:trunkfrom
itzmekhokan:fix/65848-toolbar-label-hover-color
Closed

Toolbar: Restore the color scheme text color on top-level label hover.#12968
itzmekhokan wants to merge 1 commit into
WordPress:trunkfrom
itzmekhokan:fix/65848-toolbar-label-hover-color

Conversation

@itzmekhokan

@itzmekhokan itzmekhokan commented Aug 11, 2026

Copy link
Copy Markdown

Fixes admin bar top-level labels (+ New, Command Palette, Comments, Updates) using the hardcoded #72aee6 hover color instead of the active admin color scheme.

The issue was a specificity mismatch: admin-bar.css still had span.ab-label:hover:not(.mobile), while the color scheme rule no longer excludes .mobile since [63009]. Removing :not(.mobile) aligns both selectors, allowing the color scheme rule to win by cascade order as intended.

No new mobile behavior is introduced; this simply restores consistency between the default and color scheme styles.

Trac ticket: https://core.trac.wordpress.org/ticket/65848

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Ticket analysis and code implementation. All changes were reviewed and validated by me.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

The default admin bar styles still qualify the `span.ab-label` hover
selector with `:not(.mobile)`, while [63009] dropped that qualifier from
the matching color scheme rule. The qualifier makes the default rule the
more specific of the two, so the hardcoded `#72aee6` wins over the color
scheme on every top level node that outputs a label, such as "+ New",
the command palette, Comments, and Updates.

Drop the qualifier so both rules match the same elements again and the
color scheme wins on cascade order, as it does for the surrounding
toolbar hover rules.

Fixes #65848.
@github-actions

github-actions Bot commented Aug 11, 2026

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props khokansardar, wildworks, joedolson.

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

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@t-hamano

Copy link
Copy Markdown
Contributor

Thank you for the PR. I apologize if I'm mistaken, but the PR description appears to be entirely AI-generated, which makes it quite verbose and difficult for a human to read. Please refer to the AI guidelines, take responsibility for AI-generated content, and revise the text to be more human-readable and easier for reviewers.

@t-hamano
t-hamano requested review from afercia and joedolson August 11, 2026 11:46
@itzmekhokan

Copy link
Copy Markdown
Author

Thank you for the PR. I apologize if I'm mistaken, but the PR description appears to be entirely AI-generated, which makes it quite verbose and difficult for a human to read. Please refer to the AI guidelines, take responsibility for AI-generated content, and revise the text to be more human-readable and easier for reviewers.

@t-hamano I've already added the Use of AI Tools disclosure in the description.

@joedolson

Copy link
Copy Markdown
Contributor

@itzmekhokan The problem isn't the use of AI, which you disclosed responsibly, as expected. It's the PR description itself, which is extremely verbose. It would be much appreciated if you could edit those down to only the relevant details, rather than keeping the entirety of the AI feedback.

@itzmekhokan

Copy link
Copy Markdown
Author

@itzmekhokan The problem isn't the use of AI, which you disclosed responsibly, as expected. It's the PR description itself, which is extremely verbose. It would be much appreciated if you could edit those down to only the relevant details, rather than keeping the entirety of the AI feedback.

Understood. Thanks, I've updated the PR description.

@afercia afercia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. LGTM

@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 63188
GitHub commit: bf0784f

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Aug 11, 2026
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.

4 participants