[wp-trac] [WordPress Trac] #41589: Add aria-current="page" to the admin menu current item
WordPress Trac
noreply at wordpress.org
Tue Aug 8 22:03:48 UTC 2017
#41589: Add aria-current="page" to the admin menu current item
----------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords: aria-current
Focuses: accessibility |
----------------------------+-----------------------------
See also #40833.
The `aria-current` attribute is a simple, effective way to communicate to
assistive technologies users which is the current item within a set of
items. It can take different kind of values, depending on the nature of
the set of items. Reference: https://www.w3.org/TR/wai-aria-1.1/#aria-
current
For a navigation menu, the appropriate value is `page`. All the major
screen readers support it in their latest versions. Code examples, support
table, and demo videos by Léonie Watson: http://design-patterns.tink.uk
/aria-current/
I'd propose to add `aria-current="page"` to the current item in the admin
menu. The only issue there is that the top-level item is repeated also as
a sub-item:
[[Image(https://cldup.com/k_GYp6VZ03.png)]]
In this case, I'd propose to add `aria-current="page"` to the sub-item, so
it's on the same item that has the `current` CSS class. This would work
well also in the responsive view, where the active group of items is
always expanded. Worth noting the menu in the responsive view could be
further improved for accessibility, but that's a bit out of the scope of
this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41589>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list