[wp-trac] [WordPress Trac] #51786: Accessibility issue with the logo on the login page
WordPress Trac
noreply at wordpress.org
Sat Nov 28 08:41:30 UTC 2020
#51786: Accessibility issue with the logo on the login page
------------------------------------+------------------------------
Reporter: roytanck | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
------------------------------------+------------------------------
Comment (by roytanck):
Hi @joedolson. Thank you for looking into this. The problem isn't with the
HTML markup as such. It's perfectly fine to have an <a> inside an <h1>.
The issue is with the purpose of the <h1>.
https://fae.disability.illinois.edu/rulesets/HEADING_1/
The <h1> should contain an indication of the contents of the current page.
A link to another location (whether it's wp.org or the site's home page)
is not a description or title for what's found on the current page.
To people using assistive technologies, the purpose of the page is less
immediately obvious. They often rely on headings to navigate the page, and
don't immediately "see" the form below it.
It's great that WordPress offers filters for the link's href and text, but
they can only be used to modify the link. The link text should always
describe the link's target (a different page), so in no case will it
describe the current page's contents.
This issue came up during an accessibility audit of a client's site (a
large government organization in NL). The a11y expert and I concluded that
there was no way to fix it using the hooks that WP currently offers. The
<h1> and the <a> serve different purposes, and the best option is to split
them into two entities. A credit link for WP, and a proper page title.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51786#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list