[wp-trac] [WordPress Trac] #36882: Add a reusable admin CSS class for destructive actions
WordPress Trac
noreply at wordpress.org
Wed May 18 22:54:28 UTC 2016
#36882: Add a reusable admin CSS class for destructive actions
----------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
As generally recommended, plugin authors should not use regular buttons
for destructive actions, like removing something.
However, while there are standardized classes for buttons in WordPress
admin (`button`, `button-primary`, `button-secondary`), a similar
standardized class is missing for the destructive link. There are several
locations in the admin where such links are displayed, but these are all
styled using their individual selectors. Therefore plugin authors who want
to use this style must either use one of these selectors (that probably do
not fit the use-case at all) or recreate the style manually. Therefore I
propose to standardize these style rules for a specific class, for example
something like `delete-button` or `delete-link`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36882>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list