[wp-trac] [WordPress Trac] #47123: The post(s) navigation landmark needs to be labelled
WordPress Trac
noreply at wordpress.org
Sat Aug 24 21:03: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):
Here is a patch that introduces the "aria_label" argument to each of the
hooks that involve the `_navigation_markup` function.
The default ARIA label is either "Posts" or "Comments" for those
navigation elements in their default usage. However, if the
`screen_reader_text` argument is specified, then the default label may not
apply. So the `screen_reader_text` becomes the ARIA label, even if it
might be redundant with the element name. Similarly, customizations to the
template using the `navigation_markup_template` filter have a
`screen_reader_text` fallback as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47123#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list