[wp-trac] [WordPress Trac] #50702: Invalid tabindex in screen-reader-shortcut
WordPress Trac
noreply at wordpress.org
Mon Aug 10 15:46:32 UTC 2020
#50702: Invalid tabindex in screen-reader-shortcut
----------------------------+------------------------------
Reporter: erikjandelange | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: good-first-bug | Focuses: accessibility
----------------------------+------------------------------
Changes (by afercia):
* keywords: => good-first-bug
Comment:
In `wp-includes/class-wp-admin-bar.php` there's a check to conditionally
render the "Skip to toolbar" link:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
admin-bar.php?rev=47771&marks=439-441#L438
I think the best approach would be to prevent this link to be printed out
when the admin bar has been rendered on the `wp_body_open` action.
Actually, the link is pointless when the admin bar is printed out as first
thing within the body element.
Instead, for all the themes that don't implement the `wp_body_open` action
yet, the admin bar is still printed out in the footer so the skip link
needs to stay.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50702#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list