[wp-trac] [WordPress Trac] #47123: The post(s) navigation landmark needs to be labelled
WordPress Trac
noreply at wordpress.org
Fri Jun 14 16:43:59 UTC 2019
#47123: The post(s) navigation landmark needs to be labelled
-----------------------------+--------------------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses: accessibility, template
-----------------------------+--------------------------------------
Comment (by afercia):
@SergeyBiryukov interesting, thanks! I'm afraid these existing labels
wouldn't be appropriate though because:
- we need a label also for comments
- the word `list` suggests there's a list: that's true for the posts
tables (where these labels are currently used) but in this navigation
there's no list, there's just a navigation
- more importantly: the labels should not contain the word `navigation`:
that's already automatically announced by screen readers because of the
`<nav>` element
For example, in the case of comments, the ideal markup would be:
{{{
<nav class="navigation comment-navigation" role="navigation" aria-
label="Comments">
<h2 class="screen-reader-text">Comments navigation</h2>
<div class="nav-links"> ... </div>
</nav>'
}}}
Maybe we could try to use the object plural name, not sure if that's
reliable enough to have a meaningful name for the navigation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47123#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list