Make WordPress Core

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#48715 closed defect (bug) (duplicate)

Add New buttons on Posts/Pages/Media don't adhere to Admin Color Scheme

Reported by: garrett-eclipse's profile garrett-eclipse Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-screenshots needs-design-feedback 2nd-opinion
Focuses: ui Cc:

Description

As @drw158 pointed out in Slack, and I've now confirmed on a clean install.

The Add New buttons found on the Posts/Media/Pages/Themes/Plugins/Users screens all fail to comply to the Admin Color Scheme as they don't utilize the .button class which is how the colour scheme is applied to other buttons.

All the best,
Cheers

Attachments (7)

Screen Shot 2019-11-18 at 2.36.47 PM.png (18.5 KB) - added by garrett-eclipse 5 years ago.
Unstyled Add New on Posts
Screen Shot 2019-11-18 at 2.36.59 PM.png (16.6 KB) - added by garrett-eclipse 5 years ago.
Unstyled Add New on Media
Screen Shot 2019-11-18 at 2.37.25 PM.png (19.9 KB) - added by garrett-eclipse 5 years ago.
Markup for the Add New buttons is missing .button class which is standardly how the Admin Colour Scheme styling gets applied.
48715.diff (851 bytes) - added by melchoyce 5 years ago.
48715-after.gif (141.5 KB) - added by melchoyce 5 years ago.
Should match new styling in #48585
9034dc6cae68a637d441620d512f2fcd.gif (611.1 KB) - added by garrett-eclipse 5 years ago.
Default Colour Scheme shows blue focus outline for both Add New and Apply/Filter
c3200076b4b1e788571faab228c45f3c.gif (596.2 KB) - added by garrett-eclipse 5 years ago.
Using a colour scheme the focus outline on the Add New uses the scheme while the Apply/Filter don't

Download all attachments as: .zip

Change History (25)

@garrett-eclipse
5 years ago

Unstyled Add New on Posts

@garrett-eclipse
5 years ago

Unstyled Add New on Media

@garrett-eclipse
5 years ago

Markup for the Add New buttons is missing .button class which is standardly how the Admin Colour Scheme styling gets applied.

This ticket was mentioned in Slack in #design by garrett-eclipse. View the logs.


5 years ago

#2 @afercia
5 years ago

  • Keywords has-screenshots needs-design-feedback added

Some prior conversation on the "Add New" button happened on #34904.

Historically, this button has always had its own specific styling. Before WordPress 4.5 it used a medium grey and no border. Blue on hover / focus. See screenshot on the left.

The contrast was not sufficient so it was changed in WordPress 4.5 to use a lighter grey plus some border. See screenshot on the right.

http://cldup.com/hfI3e4MtuV.png

This change made the Add New button very close to secondary buttons, but still different on hover / focus. See relevant discussion on #34864. See also #34876 and the related changeset [35791].

Among other things, this button has also a different border-radius compared to the standard buttons.

That's not to say it can't be changed :) Personally, I'd be in favor of making it a standard secondary button. I don't see strong reasons why it should be different from all the other buttons and I'm not sure why it should be bold and blue on hover / focus. Also, simplifying the CSS and removing exceptions is always a good thing in the long run. /Cc @michaelarestad

#3 @garrett-eclipse
5 years ago

Thanks for the history @afercia I tend to agree with you on making it consistent and removing the exceptions there. Along with falling in line with the new Admin CSS, accessibility improvements and any futher improvements to the UI it ensures that button will also reflect the user Admin Colour Scheme preference.

This ticket was mentioned in Slack in #core by garrett-eclipse. View the logs.


5 years ago

#5 @melchoyce
5 years ago

#48889 was marked as a duplicate.

@melchoyce
5 years ago

@melchoyce
5 years ago

Should match new styling in #48585

@garrett-eclipse
5 years ago

Default Colour Scheme shows blue focus outline for both Add New and Apply/Filter

@garrett-eclipse
5 years ago

Using a colour scheme the focus outline on the Add New uses the scheme while the Apply/Filter don't

#6 follow-up: @garrett-eclipse
5 years ago

  • Keywords 2nd-opinion added

Thanks for the patch @melchoyce

Upon initially reviewing was expecting the button colour to change with the colour scheme but that doesn't seem to be the case on this button and looking at the Apply/Filter for comparison it appears to conform so I guess these buttons don't change colour with the scheme.

That being said another difference I noticed was the focus state, when using the default colour scheme the Add New has the same focus as the Apply and Filter (blue outline). But when using a colour scheme the Add New got a different colour than the Apply and Filter (see screenshot) it seems the focus is colour scheme specific but only on Add New and not the other buttons. Not sure if this is an issue or intentional.

Last edited 5 years ago by garrett-eclipse (previous) (diff)

#7 in reply to: ↑ 6 @garrett-eclipse
5 years ago

Replying to garrett-eclipse:

Upon initially reviewing was expecting the button colour to change with the colour scheme but that doesn't seem to be the case on this button and looking at the Apply/Filter for comparison it appears to conform so I guess these buttons don't change colour with the scheme.

From this recent Make post it seems this was intentional for secondary buttons;
https://make.wordpress.org/core/2019/12/10/alternate-color-schemes-changes-in-wordpress-5-3-1/

This ticket was mentioned in Slack in #design by estelaris. View the logs.


4 years ago

This ticket was mentioned in Slack in #design by paaljoachim. View the logs.


3 years ago

This ticket was mentioned in Slack in #design by chaion07. View the logs.


3 years ago

#11 @paaljoachim
3 years ago

What kind of feedback is needed here?
Perhaps @ryelle might have some feedback.

This ticket was mentioned in Slack in #core-css by paaljoachim. View the logs.


3 years ago

#13 @ryelle
3 years ago

  • Keywords close added

Since this ticket was created, the "add new" styles have had some iterations. These links now user a style very similar to the secondary button (ex, "Apply" the bulk actions) In most color schemes this means the buttons have a colored border and get darker on hover. Some of the schemes are considered "low contrast", so the secondary buttons are grey, and the Add New has a different focus style (see Ocean or Coffee).

I've automated taking a bunch of screenshots from all the color schemes, so here are 5 images for each color scheme:

  1. The default state
  2. Add New is hovered
  3. Add New is focused
  4. Apply (bulk actions) is hovered
  5. Apply (bulk actions) is focused

https://cloudup.com/ciynZYbbZAz

Given that these buttons now do have color scheme styles, I think this ticket can be closed, if design doesn't have anything to change here.

This ticket was mentioned in Slack in #design by chaion07. View the logs.


3 years ago

#15 @michaelarestad
3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Given that these buttons now do have color scheme styles, I think this ticket can be closed, if design doesn't have anything to change here.

I agree. This ticket can be closed for now. The button looks good across color schemes and matches color scheme styles.

#16 @desrosj
3 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted

#17 @desrosj
3 years ago

@ryelle Do you happen to know which ticket would have been responsible for the improvements making this ticket unnecessary? We should change the resolution from fixed to something else, like duplicate or invalid (default catch all).

#18 @ryelle
3 years ago

  • Resolution changed from fixed to duplicate

Looks like the work to update all the secondary buttons happened in #50537, so i've marked this one as a duplicate.

Note: See TracTickets for help on using tickets.