[wp-trac] [WordPress Trac] #62311: "Skip to content" should have an ID
WordPress Trac
noreply at wordpress.org
Mon Oct 28 09:11:36 UTC 2024
#62311: "Skip to content" should have an ID
---------------------------+-----------------------------
Reporter: philliproth | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
For accessibility it would be nice to let the "skip to content" link have
an ID. This way if a "back to top" link is implemented in any way it can
target the link and the very top of the page. "#" or "#top" usually works
in every browser visually, but nothing would get focus. And something
should get focus.
Simply add an id="skip-link". Easy :-)
<a id="skip-link" class="skip-link screen-reader-text" href="#wp--skip-
link--target">Skip to content</a>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62311>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list