[wp-trac] [WordPress Trac] #38338: Twenty Sixteen: Skip To Content Link Not Working on iPhone

WordPress Trac noreply at wordpress.org
Thu May 25 00:53:46 UTC 2023


#38338: Twenty Sixteen: Skip To Content Link Not Working on iPhone
-------------------------------------------------+-------------------------
 Reporter:  alexstine                            |       Owner:  joedolson
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.3
Component:  Bundled Theme                        |     Version:
 Severity:  major                                |  Resolution:
 Keywords:  needs-testing 2nd-opinion has-patch  |     Focuses:
                                                 |  accessibility
-------------------------------------------------+-------------------------

Comment (by joedolson):

 I was unable to confirm that this PR fixes this issue. In *this* round of
 tests, I can verify that the skip link focus fix was gone, but this did
 not have any impact on the focus issues with iOS.

 Further research shows that this can be fixed by adding `tabindex="-1"` to
 the target container on iOS devices.

 I'm not sure what's causing it, however. I created a very simple codepen
 to experiment: https://codepen.io/joedolson/pen/dygddPV, with just a skip
 link, a simple nav, and a target container, and it does not require
 tabindex to get focus.

 I also did a test of Twenty Sixteen with `wp_head()` & `wp_footer()`
 removed entirely, to test interference from CSS or JS - and in *that* test
 focus would briefly land in the main content, then shift focus back to a
 random item in the middle of the navigation menu.

 Diagnosis: I don't think this is our bug.

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


More information about the wp-trac mailing list