[wp-trac] [WordPress Trac] #54538: Reset Password form: Generate Password contains aria-expanded
WordPress Trac
noreply at wordpress.org
Wed Jan 5 17:35:58 UTC 2022
#54538: Reset Password form: Generate Password contains aria-expanded
-------------------------------------------------+-------------------------
Reporter: alexstine | Owner: alexstine
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Login and Registration | Version: 5.7
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing commit dev- | Focuses:
reviewed | accessibility
-------------------------------------------------+-------------------------
Changes (by davidbaumwald):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"52450" 52450]:
{{{
#!CommitTicketReference repository="" revision="52450"
Login and Registration: Remove `aria-expanded` from "Generate Password"
button.
During password resets, the 'Generate Password" button has a `aria-
expanded="true"` attribute, but the button itself does not expand or
collapse anything. This change adds a `skip-aria-expanded` class to the
button which is referenced in JavaScript to skip updating the `aria-
expanded` attribute on the button itself when clicked.
This change also resets the `aria-expanded` attribute to `false` for the
parent form after it's submitted.
Props alexstine, johnjamesjacoby, sabernhardt.
Fixes #54538.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54538#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list