mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +00:00
Accessibility: List Tables: Hide the Comments column icon and title attribute from screen readers.
The element already has non-visual text, making the icon and the `title` attribute redundant for assistive technologies. Follow-up to [22439], [27548], [31513], [32991], [50804]. Props sabernhardt, ryokuhi, afercia, karlgroves, SergeyBiryukov. Fixes #55555. See #24766. git-svn-id: https://develop.svn.wordpress.org/trunk@53414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -691,7 +691,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
&& ! in_array( $post_status, array( 'pending', 'draft', 'future' ), true )
|
||||
) {
|
||||
$posts_columns['comments'] = sprintf(
|
||||
'<span class="vers comment-grey-bubble" title="%1$s"><span class="screen-reader-text">%2$s</span></span>',
|
||||
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
|
||||
esc_attr__( 'Comments' ),
|
||||
__( 'Comments' )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user