Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 5 months ago

#61616 closed enhancement (fixed)

Add border to admin sidebar/bar for Windows high contrast mode

Reported by: wildworks Owned by: rcreators
Priority: normal Milestone: 6.7
Component: Administration Version:
Severity: normal Keywords: has-patch has-screenshots commit
Cc: Focuses: accessibility

Description

When you enable high contrast mode on Windows, no border is drawn below the admin bar or to the right of the admin sidebar.

This makes the boundary between the content area and the navigation area unclear.

To address this issue in high contrast mode, both core and Gutenberg use an approach that adds styles like this one: outline: 1px solid transparent;

Attachments (9)

actual.png​ (51.0 KB ) - added by wildworks 2 years ago.
Current view
expected.png​ (53.7 KB ) - added by wildworks 2 years ago.
The view I want to look
patch-61616.patch​ (775 bytes ) - added by hbhalodia 2 years ago.
Path for issue - 61616
patch-61616-2.patch​ (940 bytes ) - added by hbhalodia 2 years ago.
Updated Patch
new-content-icon-too-tall.png​ (5.7 KB ) - added by sabernhardt 2 years ago.
the New content link icon is too tall on smaller screens
61616.outline-submenus.diff​ (2.5 KB ) - added by sabernhardt 2 years ago.
option: add outlines for submenus
admin-toolbar-submenu-outlines.png​ (73.3 KB ) - added by sabernhardt 2 years ago.
possible outlines for the toolbar submenus
admin-sidebar-submenu-outlines.png​ (155.9 KB ) - added by sabernhardt 2 years ago.
possible outlines/borders for the admin menu's submenus
61616.submenus.2.diff​ (2.6 KB ) - added by joedolson 2 years ago.
Adjusts line height of add new icon

Download all attachments as: .zip

Change History (25)

@wildworks
2 years ago

Current view

@wildworks
2 years ago

The view I want to look

#1 @wildworks
2 years ago

  • Focuses accessibility added

This ticket was mentioned in ​Slack in #accessibility by joedolson. ​View the logs.


2 years ago

#3 @joedolson
2 years ago

  • Milestone Awaiting Review → 6.7
  • Owner set to joedolson
  • Status new → accepted

Makes sense to me!

#4 @joedolson
2 years ago

  • Owner changed from joedolson to rcreators
  • Status accepted → assigned

This ticket was mentioned in ​PR #7127 on ​WordPress/wordpress-develop by ​@hbhalodia.


2 years ago
#5

  • Keywords has-patch added

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

## Issue

  • When you enable high contrast mode on Windows, no border is drawn below the admin bar or to the right of the admin sidebar. This makes the boundary between the content area and the navigation area unclear.

#6 @hbhalodia
2 years ago

Hi @wildworks @joedolson, I have rasied the PR as per the suggestion - ​https://github.com/WordPress/wordpress-develop/pull/7127

Can you please review the patch and let me know if that needs some more work, I am happy to update the PR with requested changes.

Thank You.

@hbhalodia
2 years ago

Path for issue - 61616

#7 @wildworks
2 years ago

@hbhalodia Thanks for the update. patch-61616-2.patch works fine for me.

#8 @hbhalodia
2 years ago

Thanks for the confirmation @wildworks.

#9 @rcreators
2 years ago

  • Keywords has-screenshots added

Hello @hbhalodia,

Thanks for the PR. It works as expected.

Before Patch: ​https://prnt.sc/7Ne0fZuMhufG

After Patch: ​https://prnt.sc/C6EwzGx9xaaR

This one looks ready to commit @joedolson

@sabernhardt
2 years ago

the New content link icon is too tall on smaller screens

@sabernhardt
2 years ago

option: add outlines for submenus

@sabernhardt
2 years ago

possible outlines for the toolbar submenus

@sabernhardt
2 years ago

possible outlines/borders for the admin menu's submenus

#10 @sabernhardt
2 years ago

  • Keywords 2nd-opinion added

PR 7163 is a good start but maybe not complete.

  1. The toolbar's outline breaks under the New content link icon on smaller screens because the line-height is too tall on #wpadminbar #wp-admin-bar-new-content .ab-icon:before.
  2. I would like to consider adding an outline (or border) for submenus. 61616.outline-submenus.diff​ keeps the 5px left border from r49961 and adds 1px for the other three sides, and it makes the current and non-current submenu styles more consistent. In the toolbar, if the incomplete outline around the Network Admin submenu is a significant problem, raising the second submenu's z-index to 100000 might help.

Also, the border around the mobile menu toggle appears when the page loads, and it does not change when focused. (border added in r26134)

This ticket was mentioned in ​Slack in #accessibility by joedolson. ​View the logs.


2 years ago

#12 @joedolson
2 years ago

I'm in favor of adding the outline on submenus as well. It's clearly related to this topic, and it would greatly enhance the usability of high contrast mode.

The border on the mobile menu toggle maybe should be an independent ticket; although I could easily be convinced otherwise. Menus and their associated toggles are really just one component, after all.

This ticket was mentioned in ​Slack in #core by stoyangeorgiev. ​View the logs.


2 years ago

@joedolson
2 years ago

Adjusts line height of add new icon

#14 @joedolson
2 years ago

  • Keywords commit added; 2nd-opinion removed

Updated patch adjusts the line-height on the add new icon to 1.27, which evens out the outlines. It doesn't appear to cause any problems; the visual alignment still works to my eye.

I'm inclined to commit this, even without resolving the multisite menu issue. I don't really see that as a significant problem. When resolving it, it results in a visible overlap between the two outlines, and I'm not sure that's an improvement.

I'm marking this for commit.

#15 @joedolson
2 years ago

  • Resolution → fixed
  • Status assigned → closed

In 59041:

Accessibility: Add border around menus and submenus in high contrast mode.

Add outlines and borders to mark the boundaries between the admin navigation menu and content and around adminbar submenus that are visible when Windows High Contrast Mode is enabled. This clarifies the page structure and makes high contrast mode easier to use.

Props wildworks, hbhalodia, sabernhardt, joedolson, rcreators.
Fixes #61616.

​@wildworks commented on ​PR #7127:


5 months ago
#16

This PR has already been committed as part of r59041.

Note: See TracTickets for help on using tickets.