#23738 closed enhancement (fixed)
Audit our secondary button uses
Reported by: | markjaquith | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Administration | Keywords: | good-first-bug has-patch needs-testing |
Focuses: | ui | Cc: |
Description
helen pondered in #wordpress-ui that maybe the "apply" button in the Screen Options dropdown should be a primary button. There's a good argument to be made that when this panel is down, that "apply" button is your new primary.
We should do an audit of our buttons to see if there are any other cases where we could make an action or a temporarily primary action more obvious by using the primary button style.
Attachments (3)
Change History (21)
#6
@
11 years ago
The "Delete Users" and "Import WordPress" screens both don't have a primary button and should really have one. See screenshots.
#7
follow-up:
↓ 9
@
11 years ago
Hi I want to help with this too.
I chose this ticket for school project so I need to solve it.
thx
#8
@
11 years ago
I think the apply buttons beside the Bulk actions menu should be a primary button.
#9
in reply to:
↑ 7
@
11 years ago
Replying to tivvit:
Hi I want to help with this too.
I chose this ticket for school project so I need to solve it.
thx
Hi, I don't think there is any solving required. It's just an audit of their secondary button usage. As far as I can interpret only reporting those buttons (which are secondary and you think are supposed to be primary), is needed. For actually changing such buttons to primary, as almost all buttons have been added using the function submit_button() you could just pass the $type parameter as 'primary'.
#10
@
11 years ago
Hi, I have uploaded patch for few buttons in description. Now I'll start working on Bulk actions menu.
Is this all right? It's my first bug, so I'm not sure in this things.
Thx for reply.
#11
@
11 years ago
- Owner set to markjaquith
- Status changed from new to assigned
Assigning to markjaquith for review (and to take this ticket off the good-first-bugs report).
#13
in reply to:
↑ 4
;
follow-up:
↓ 16
@
9 years ago
- Milestone changed from Future Release to 4.4
Since this has been sitting for so long, I'm going to handle getting this in rather than prompting for a re-patch, as I usually would.
Replying to alexandec:
- On the Edit Post page, in the Publish box, after clicking one of the three Edit links, the "OK" button could be a primary button.
This is a bit noisy and too close to the Publish button, and they also stay on-screen.
- On the Edit Post page, after clicking "+ Add New Category", the "Add New Category" button could be a primary button.
See above.
- On the Media Library page, the "Add New" button could be a primary button (right now it looks like a primary button on hover only).
The "Add New" links are not buttons and shouldn't be.
- On the Media Library -> Add New page, the "Select Files" button could be primary.
- In the single-file Browser Uploader, the "Upload" button could be primary.
Sounds good.
- On the Pages page, the "Add New" button could be a primary button.
- On the Users page, the "Add New" button could be a primary button.
Per above, not buttons.
- On Posts, Media, Pages, and Comments pages, when one or more checkboxes are checked next to items, the "Apply" button next to "Bulk Actions" could become a primary button. If a user checks boxes, it's very likely they will perform a bulk action next. The primary button serves as a visual cue showing them how to proceed.
I wouldn't want to change a button's color this way, but I think there's a ticket about enabling/disabling/hiding things up there when nothing's selected that may already have some commits on it.
- On Posts, Media, Pages, and Comments pages, when the user chooses a dropdown option next to the "Filter" button, the "Filter" button could become a primary button, reminding the user they need to click the button to activate the filter.
Also wouldn't want to shift a button's color here.
This ticket was mentioned in Slack in #design by helen. View the logs.
9 years ago
#16
in reply to:
↑ 13
@
9 years ago
Replying to helen:
- On the Media Library -> Add New page, the "Select Files" button could be primary.
- In the single-file Browser Uploader, the "Upload" button could be primary.
Sounds good.
Upon actually trying this out, it is overbearing and distracts from the drag-and-drop hint in plupload. Seems fine for the browser uploader button though, since it's a similar context to the import file button.
I've examined the Dashboard and found a number of cases where a primary button is not used, but could be: