[wp-trac] [WordPress Trac] #42632: Remove tabindex="-1" from login form header

WordPress Trac noreply at wordpress.org
Sun Nov 19 23:55:29 UTC 2017


#42632: Remove tabindex="-1" from login form header
------------------------------------+-----------------------------
 Reporter:  bamadesigner            |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.9
 Severity:  normal                  |   Keywords:
  Focuses:  accessibility           |
------------------------------------+-----------------------------
 The h1 on the login form has an <a> with a tabindex attribute set to -1,
 which means that it cannot receive keyboard focus. This is an
 accessibility violation as it disable users who are navigating the page
 via keyboard from accessing the action.

 To fix, all that has to be done is remove ' tabindex="-1"' from line 161
 in wp-login.php:

 {{{#!php
 <?php
 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php
 echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' );
 ?></a></h1>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42632>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list