[wp-trac] [WordPress Trac] #59965: Reply link: Elements with visible text labels do not have matching accessible names
WordPress Trac
noreply at wordpress.org
Tue Nov 28 08:59:30 UTC 2023
#59965: Reply link: Elements with visible text labels do not have matching
accessible names
--------------------------+--------------------------------------
Reporter: halilesen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 6.4
Severity: normal | Resolution:
Keywords: | Focuses: accessibility, template
--------------------------+--------------------------------------
Comment (by halilesen):
Yes.
I customized the reply link as follows.
{{{
<?php comment_reply_link( array_merge( $args, array(
'reply_text' => __('<svg
xmlns="http://www.w3.org/2000/svg" class="cevaplasimgesi" style="vertical-
align: -0.125em;" width="18" height="18" preserveAspectRatio="xMidYMid
meet" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16h7.2l-2.6
2.6L15 20l5-5l-5-5l-1.4 1.4l2.6 2.6H9c-2.2 0-4-1.8-4-4s1.8-4
4-4h2V4H9c-3.3 0-6 2.7-6 6s2.7 6 6 6z"/></svg><span>Cevapla</span>',
'textdomain'),
'depth' => $depth,
'max_depth' => $args['max_depth']
) ) ); ?>
}}}
After deleting the inside of aria-label I realized it wasn't working. I
tried different shapes, but eventually I had to change it back to the
aria-label='%s' shape. I'm sure it will be edit in the best possible way.
Best.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59965#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list