mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Passwords: Add password strength meter feedback for screen readers.
Also gives context to the show/hide button. Props rianrietveld, afercia. Fixes #33032. git-svn-id: https://develop.svn.wordpress.org/trunk@33353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -94,15 +94,13 @@
|
||||
var show = pw_togglebtn.attr( 'data-toggle' );
|
||||
if ( show == 1 ) {
|
||||
pw_field.attr( 'type', 'text' );
|
||||
pw_togglebtn.attr( 'data-toggle', 0 )
|
||||
.find( '.text' )
|
||||
.text( userProfileL10n.hide )
|
||||
pw_togglebtn.attr({ 'data-toggle': 0, 'aria-label': userProfileL10n.ariaHide })
|
||||
.find( '.text' ).text( userProfileL10n.hide )
|
||||
;
|
||||
} else {
|
||||
pw_field.attr( 'type', 'password' );
|
||||
pw_togglebtn.attr( 'data-toggle', 1 )
|
||||
.find( '.text' )
|
||||
.text( userProfileL10n.show )
|
||||
pw_togglebtn.attr({ 'data-toggle': 1, 'aria-label': userProfileL10n.ariaShow })
|
||||
.find( '.text' ).text( userProfileL10n.show )
|
||||
;
|
||||
}
|
||||
pw_field.focus();
|
||||
|
||||
Reference in New Issue
Block a user