[wp-trac] [WordPress Trac] #47123: The post(s) navigation landmark needs to be labelled
WordPress Trac
noreply at wordpress.org
Tue Sep 17 17:55:11 UTC 2019
#47123: The post(s) navigation landmark needs to be labelled
-----------------------------+--------------------------------------
Reporter: afercia | Owner: williampatton
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses: accessibility, template
-----------------------------+--------------------------------------
Comment (by sabernhardt):
@afercia Thanks for calling attention to two scenarios I failed to
test/verify earlier. It seems the patch from 3 weeks ago passed both tests
today.
A posts taxonomy archive page has almost the same markup for its
older/newer posts links as a single post has for its previous/next
navigation links (at least in Twenty Nineteen). That is, the special `nav`
class is "pagination" on the archive page instead of "post-navigation":
`<nav class="navigation post-navigation" role="navigation" aria-
label="Posts"><h2 class="screen-reader-text">Post navigation</h2><div
class="nav-links">` ... `</div></nav>`
And I verified that a custom post type (for example, Projects) can use
`the_post_navigation` in the theme templates for single (project) pages.
Custom arguments can redefine previous/next links, screen reader text,
and/or aria-label to match the post type. A theme taxonomy template also
can be adjusted for custom taxonomy archives.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47123#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list