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

WordPress Trac noreply at wordpress.org
Mon Nov 20 18:44:23 UTC 2017


#42632: Remove tabindex="-1" from login form header
------------------------------------+----------------------------
 Reporter:  bamadesigner            |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  5.0
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch             |     Focuses:  accessibility
------------------------------------+----------------------------
Changes (by afercia):

 * keywords:   => needs-patch
 * version:  4.9 =>
 * milestone:  Awaiting Review => 5.0


Comment:

 Discussed a bit this ticket during today's accessibility meeting. Seems
 the main argumentation in the original ticket #28674 was about the install
 / setup pages are actually a multi-step process and having to tab through
 the logo link at each step is a bit annoying.

 However, on other pages like the login one, the logo is just removed from
 the tab order even if the username field receives the initial focus.

 Similarly to the login page, the install / setup process is maybe one of
 the few cases where moving focus programmatically would make sense.
 There’s one, specific, task and focusing the first field would speed up
 the process. The task is mandatory; you don't really have any other
 options during the process.

 For these reasons, we'd like to second @bamadesigner proposal and remove
 `tabindex="-1"` from all these pages. On the install / setup pages, the
 first focusable field should receive the initial focus and there's the
 HTML5 [https://www.w3.org/TR/html51/sec-forms.html#autofocusing-a-form-
 control-the-autofocus-attribute autofocus] attribute which is worth
 trying.

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


More information about the wp-trac mailing list