Make WordPress Core

Opened 10 years ago

Closed 8 years ago

#25110 closed enhancement (wontfix)

additional button colors

Reported by: norcross's profile norcross Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Administration Keywords: dev-feedback ui-feedback needs-patch
Focuses: ui Cc:

Description

currently there exists button-primary (blue) and button-secondary (gray). however, many times I've seen the need to include some sort of 'warning' button as well, in red. I have a CSS patch ready, but wanted to get some feedback on whether this would be worthwhile before I clean it up a bit to make sure it matches all the other UI elements.

Change History (9)

#1 @SergeyBiryukov
10 years ago

  • Component changed from Appearance to Administration
  • Keywords ui-focus added

#2 @helen
10 years ago

I guess my question would be - when is something dangerous a button as opposed to a link? See "Move to trash" in the publish metabox, for example.

#3 @norcross
10 years ago

for something existing currently in core admin, perhaps the 'empty trash' button. but this would be available to theme and plugin authors (similar to the two existing classes I mentioned above) to encourage standardization.

#4 @helen
10 years ago

I can see the case for "empty trash". We've talked about other button colors before (go/danger/stop) - maybe we should talk about it again.

#5 @DrewAPicture
10 years ago

Orange! WordPress Orange! But seriously, I think it's worth discussing.

#6 @SergeyBiryukov
10 years ago

  • Version changed from trunk to 3.6

#7 @chriscct7
8 years ago

  • Keywords ui-feedback needs-patch added
  • Severity changed from minor to normal

#8 @sdavis2702
8 years ago

I'd love to see "go/danger/stop" buttons standardized. I've been involved in projects that need "stop" buttons for sure.

Unfortunately, I can only think of use cases for plugins/themes. Currently in core, I'm not sure how I feel about potentially dangerous buttons (like Empty Trash) having attention called to them that isn't there already. The red "Move to Trash" link and others like it get the job done.

But again, I would LOVE to see something to use in plugins/themes. If the enhancement could be made for that alone, I'm all for it.

#9 @helen
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This seems to be a non-starter now because of the color schemes that came in 3.8, in which primary buttons may be different colors, including red. Color-only for indicating that something is important is also a non-starter for those who can't see those colors.

Note: See TracTickets for help on using tickets.