[wp-trac] [WordPress Trac] #36644: Make admin menu skip links accessible to developers
WordPress Trac
noreply at wordpress.org
Fri Apr 22 23:05:00 UTC 2016
#36644: Make admin menu skip links accessible to developers
-------------------------------------------+-----------------------------
Reporter: littler.chicken | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility, administration |
-------------------------------------------+-----------------------------
Currently, the WP admin skip links are hard coded in `menu-header.php` and
cannot be modified or added on to. Use case here might be a plugin with a
tabbed settings page; it might be nice to have the "Skip to main content"
bypass the tabs, since right now keyboard users still have to tab through
that entire menu, but allow the developer to add a "Skip to plugin
settings menu" or something similar on their settings page, so that both
the settings form and the tabs are available, but separate.
Modifying the output here to use a function with an array and filter can
be done easily, without changing the current output, and future skip links
can be simply added to the array.
A related change should be adding the existing section ID (set in
`add_settings_section`, so anyone using the Settings API will have already
done this) to the section title output in `do_settings_section`, to set up
the appropriate anchor. Developers who want to add a skip link to a
section on their settings page then just need to add the section ID and
text to the skip links array, using the filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36644>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list