[wp-trac] [WordPress Trac] #31527: Bundled themes: Add ARIA attributes to menu toggle
WordPress Trac
noreply at wordpress.org
Sun Mar 15 19:54:27 UTC 2015
#31527: Bundled themes: Add ARIA attributes to menu toggle
----------------------------------------------+----------------------------
Reporter: davidakennedy | Owner: lancewillett
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.2
Component: Bundled Theme | Version: 4.1
Severity: normal | Resolution:
Keywords: 4.2-beta has-patch needs-testing | Focuses: accessibility
----------------------------------------------+----------------------------
Comment (by lancewillett):
Thanks, DK.
> Not the cleanest solution, and maybe there's a better way I'm not
thinking of right now.
Hmm. I hadn't thought of that case, either.
For a slightly cleaner solution, what about filtering `link_before` and
`link_after` arguments for `wp_page_menu()` and adding in a wrapper
element with the ID we require. `div` maybe. Could do it using the
`wp_page_menu_args` hook.
It's really a bummer that classes don't work, but I can see why -- the
control wouldn't be unique on the page otherwise.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31527#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list