[wp-trac] [WordPress Trac] #64460: Accessibility: Invalid use of role="presentation" on login page heading
WordPress Trac
noreply at wordpress.org
Tue Dec 30 17:42:02 UTC 2025
#64460: Accessibility: Invalid use of role="presentation" on login page heading
------------------------------------+----------------------------
Reporter: mehrazmorshed | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Login and Registration | Version: 6.7
Severity: normal | Resolution: invalid
Keywords: has-patch close | Focuses: accessibility
------------------------------------+----------------------------
Changes (by joedolson):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This was done intentionally, as @sabernhardt states. Removing the `role`
would introduce an accessibility problem. The `h1` was only kept here to
avoid breaking downstream styling by extenders, the content itself is not
a heading, and should not be marked up as one.
The fact that it contains semantic content (a link) isn't relevant to what
type of content the wrapper is; you may have been thinking of `aria-
hidden`, which *would* be a problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64460#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list