[wp-trac] [WordPress Trac] #46233: Twenty Sixteen: Theme includes Screen Reader Text inside Card
WordPress Trac
noreply at wordpress.org
Tue Oct 26 23:35:14 UTC 2021
#46233: Twenty Sixteen: Theme includes Screen Reader Text inside Card
-----------------------------------------+------------------------------
Reporter: dshanske | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: trivial | Resolution:
Keywords: reporter-feedback has-patch | Focuses:
-----------------------------------------+------------------------------
Changes (by sabernhardt):
* keywords: reporter-feedback => reporter-feedback has-patch
Comment:
With a (default) empty `alt` attribute, screen readers would ignore the
avatar. However, the image could be moved before "Author" as well.
{{{
<span class="byline">
<img alt="" src="..." class="avatar avatar-49 photo"
loading="lazy" width="49" height="49">
<span class="screen-reader-text">Author </span>
<span class="author vcard">
<a class="url fn n"
href="http://localhost/svn/src/author/test/">test</a>
</span>
</span>
}}}
Twenty Fifteen has a similar nesting, too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46233#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list