[wp-trac] [WordPress Trac] #33767: AX_FOCUS_03: Admin Toolbar Should Use Negative Tabindex for 'Skip to toolbar'

WordPress Trac noreply at wordpress.org
Mon Sep 7 16:08:51 UTC 2015


#33767: AX_FOCUS_03: Admin Toolbar Should Use Negative Tabindex for 'Skip to
toolbar'
----------------------------+--------------------------------------------
 Reporter:  atomicjack      |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:  invalid
 Keywords:  has-patch       |     Focuses:  accessibility, administration
----------------------------+--------------------------------------------
Changes (by joedolson):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Thanks for your contribution! However, the WP Admin bar actually needs to
 use positive tabindex in order to be reasonably accessible via keyboard.
 The reason for this is because the keyboard HTML is placed at the very
 bottom of the code when it's inserted in `wp_footer`. While it's not
 generally recommended to use positive tabindex, it is actually a
 reasonable solution to this issue. In actual user testing, this is a
 better experience than removing that value.

 Because it's only a single link that has tabindex and it has an index of
 '1', it works effectively. The problem with positive tabindex is that in
 maintaining sequence and pushing items out of sequence. This this code is
 visually positioned at the top of the document and should become the first
 focused item in tab sequence, this is the right solution.

 If WordPress had a hook for inserting code at the top of the HTML body
 element, that would potentially be a better solution, but that's not
 possible.

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


More information about the wp-trac mailing list