close
Skip to content

Fixed: Admin Style: Plugin links change styles on updates on 7.0#11390

Closed
OpuRockey wants to merge 8 commits intoWordPress:trunkfrom
OpuRockey:ticket/64976
Closed

Fixed: Admin Style: Plugin links change styles on updates on 7.0#11390
OpuRockey wants to merge 8 commits intoWordPress:trunkfrom
OpuRockey:ticket/64976

Conversation

@OpuRockey
Copy link
Copy Markdown

@OpuRockey OpuRockey commented Mar 30, 2026

Ticket: https://core.trac.wordpress.org/ticket/64976

Summary

Fixes an issue where plugin action links in the admin interface change styles unexpectedly after updates (targeted for WordPress 7.0).

Problem

On the Plugins screen, action links (e.g., Activate, Deactivate, Settings) do not consistently retain their intended admin styles after a plugin update. This results in inconsistent UI appearance and deviates from the expected admin design system.

Solution

This PR ensures that plugin action links consistently use the correct admin styles after updates by aligning them with the updated admin design system and preventing unintended style overrides.

Changes Included

  • Fixed inconsistent styling of plugin action links after updates
  • Ensured alignment with current WordPress admin color and style guidelines

Testing Steps

  • Go to Plugins → Installed Plugins
  • Update any plugin
  • Observe the action links (Activate, Deactivate, etc.)
  • Confirm that styles remain consistent before and after the update

Expected Result

Plugin action links should maintain consistent styling aligned with the WordPress admin UI both before and after plugin updates.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

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 opurockey, rcorrales, joedolson, shailu25.

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.

Copy link
Copy Markdown

@rbcorrales rbcorrales left a comment

Choose a reason for hiding this comment

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

I tested this locally. The base fix works and the underline and color shift on plugin action links go away after adding .updated to the <tr>.

I think the selector approach should follow @joedolson's suggestion though. The rest of common.css already uses div.updated consistently, so changing to div.updated a would match the existing pattern. Admin notices are always rendered as <div> elements (via wp_get_admin_notice()), so scoping to div.updated is safe and more precise than :not(tr).
The main difference is that div.updated a is an allowlist (only match the known good case) while .updated:not(tr) a is a blocklist (exclude the known bad case).

The .updated a:hover and .updated a:focus selectors have the same issue and should get the same treatment. In practice the hover color doesn't change visibly because table-specific hover rules win the cascade, but the selectors still technically match tr.updated and should be fixed for correctness.

I left inline suggestions on all three selectors.

@OpuRockey
Copy link
Copy Markdown
Author

@rbcorrales , Thanks for the suggestions. I’ve addressed the requested improvements and updated the PR accordingly. Please take another look when you have a moment.

@shail-mehta
Copy link
Copy Markdown
Member

shail-mehta commented Mar 31, 2026

The plugin action links now maintain consistent styling.✅

Before After
before-patch after-patch

Copy link
Copy Markdown
Contributor

@joedolson joedolson left a comment

Choose a reason for hiding this comment

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

All of these conditions should only be applied on div elements; these are intended to target admin notices, and admin notices are always a div. Leaving them this generic could have side effects more broadly.

@OpuRockey
Copy link
Copy Markdown
Author

All of these conditions should only be applied on div elements; these are intended to target admin notices, and admin notices are always a div. Leaving them this generic could have side effects more broadly.

@joedolson, I’ve addressed the requested changes. Let me know if anything else is needed.

@OpuRockey OpuRockey requested a review from joedolson April 2, 2026 13:35
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

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

SVN changeset: 62200
GitHub commit: d508d24

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 Apr 2, 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