[wp-trac] [WordPress Trac] #55552: Status of skip-link bugs unclear

WordPress Trac noreply at wordpress.org
Sun Apr 10 19:47:12 UTC 2022


#55552: Status of skip-link bugs unclear
---------------------------------------+-----------------------------
 Reporter:  Clarus Dignus              |      Owner:  (none)
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  General                    |    Version:  5.9.3
 Severity:  normal                     |   Keywords:
  Focuses:  accessibility, javascript  |
---------------------------------------+-----------------------------
 == Core Relevance

 Skip-links are part of WordPress core. See
 [https://developer.wordpress.org/reference/functions/the_block_template_skip_link/
 the_block_template_skip_link()] in
 [https://github.com/WordPress/WordPress/blob/master/wp-includes/theme-
 templates.php /wp-includes/block-template.php].

 == Bug Description


 [In versions of IE and Chrome:] "While the visual focus of the browser
 shifts to the element being linked to, the input focus stays where it was.
 For example, if I press tab and then enter on a “skip to content” link,
 the browser will scroll down to that element so I can read the content. If
 I then press tab again, the input focus moves to the next focusable
 element after the “skip to content” link, not to the next link in the
 content area."

 — https://humanwhocodes.com/blog/2013/01/15/fixing-skip-to-content-links/

 == Solutions

 WordPress.org recommends twentynineteen_skip_link_focus_fix() but it seems
 to only apply to IE 11, not previous IE versions or Chrome versions:

 https://make.wordpress.org/themes/2019/07/14/how-to-add-and-test-skip-
 links/

 The Underscores starter theme incorporated a similar fix that seems to
 more broadly fix IE and Chrome:

 https://github.com/Automattic/_s/pull/136
 https://github.com/Automattic/_s/pull/139/files

 == Status Questions

 Is the skip-link fix part of WordPress core? If so, what browsers and
 browser versions does it fix?

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


More information about the wp-trac mailing list