Skip to content

Administration: Add a reusable .delete-link CSS class - #13265

Open
devsupportlogicrays wants to merge 1 commit into
WordPress:trunkfrom
devsupportlogicrays:fix/36882-delete-link-css
Open

Administration: Add a reusable .delete-link CSS class#13265
devsupportlogicrays wants to merge 1 commit into
WordPress:trunkfrom
devsupportlogicrays:fix/36882-delete-link-css

Conversation

@devsupportlogicrays

Copy link
Copy Markdown

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

Summary

  • Adds a reusable .delete-link admin CSS class for destructive action links.
  • Mirrors the existing .button-link-delete color rules (base + hover/focus) in the admin color schemes.
  • Gives plugin and theme authors a standard class instead of reusing unrelated core selectors or copying red link styles by hand.

Test plan

  • Confirm .wp-core-ui .delete-link uses the alert-red color in an admin screen
  • Confirm hover/focus lightens/darkens consistently with .button-link-delete
  • Confirm existing .button-link-delete buttons are unchanged
  • Spot-check at least one admin color scheme (e.g. Default / Modern)

Introduce .delete-link alongside .button-link-delete so plugin and theme
authors have a standard class for destructive admin links.
@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.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @ahirgithub.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

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

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