[wp-trac] [WordPress Trac] #47123: The post(s) navigation landmark needs to be labelled

WordPress Trac noreply at wordpress.org
Sun Sep 22 22:31:45 UTC 2019


#47123: The post(s) navigation landmark needs to be labelled
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  williampatton
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.3
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-screenshots has-     |     Focuses:  accessibility,
  patch commit needs-dev-note        |  template
-------------------------------------+-------------------------------------
Changes (by afercia):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46236" 46236]:
 {{{
 #!CommitTicketReference repository="" revision="46236"
 Accessibility: Make sure the navigation ARIA landmarks used for posts and
 comments navigation are properly labelled.

 The `<nav>` element defines an ARIA landmark by default: landmarks help
 assistive technology users to perceive the page main sections and jump
 through them. However, when a landmark is used more than once in a page,
 it needs to be distinguished from the other ones to let users understand
 what the landmark is about.

 Adds an `aria-label` parameter to the following functions:

 - `_navigation_markup()`
 - `get_the_post_navigatio()`
 - `get_the_posts_navigation()`
 - `get_the_posts_pagination()`
 - `get_the_comments_navigation()`
 - `get_the_comments_pagination()`

 Props sabernhardt, williampatton, SergeyBiryukov, audrasjb.
 Fixes #47123.
 }}}

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


More information about the wp-trac mailing list