[wp-trac] [WordPress Trac] #51580: Application Passwords: Accessibility Improvements

WordPress Trac noreply at wordpress.org
Fri Oct 30 14:38:56 UTC 2020


#51580: Application Passwords: Accessibility Improvements
------------------------------------+--------------------------------------
 Reporter:  georgestephanis         |       Owner:  georgestephanis
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  5.6
Component:  Login and Registration  |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch               |     Focuses:  accessibility, rest-api
------------------------------------+--------------------------------------

Comment (by sabernhardt):

 For a visible label on each application-password-display readonly input
 (both user-edit.php and authorize-application.php), I'd like the text to
 be the same string for **both**:
 `__( 'Your new password for %s is:' )`

 I haven't tested this for a proper patch, but it would be something like
 the following in authorize-application.php:

 {{{
                                 <p class="application-password-display">
                                         <label for="application-password-
 display">
                                         <?php
                                         printf(
                                                 /* translators: %s:
 Application name. */
                                                 __( 'Your new password for
 %s is:' ),
                                                 '<strong>' . esc_html(
 $app_name ) . '</strong>'
                                         );
                                         ?>
                                         </label>
                                         <?php
                                         sprintf(
                                                 '<input type="text" id
 ="application-password-display" class="code" readonly="readonly"
 value="%s" />',
                                                 esc_attr(
 WP_Application_Passwords::chunk_password( $new_password ) )
                                         );
                                         ?>

 }}}

 (I'm sure this can be improved)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51580#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list