Accessibility: Add the aria-hidden attribute to the auto-update related icons.

`<span>` elements used for displaying icons should use the `aria-hidden` attribute as they are purely decorative.

Props audrasjb, ryokuhi.
Fixes #50293.
Built from https://develop.svn.wordpress.org/trunk@47910


git-svn-id: http://core.svn.wordpress.org/trunk@47684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2020-06-04 15:47:09 +00:00
parent 00d3696923
commit b013a15d43
4 changed files with 5 additions and 5 deletions

View File

@ -748,7 +748,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
$action
);
echo '<span class="dashicons dashicons-update spin hidden"></span>';
echo '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
echo '<span class="label">' . $text . '</span>';
echo '</a>';

View File

@ -1066,7 +1066,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
$action
);
echo '<span class="dashicons dashicons-update spin hidden"></span>';
echo '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
echo '<span class="label">' . $text . '</span>';
echo '</a>';

View File

@ -632,12 +632,12 @@ if ( ! is_multisite() && $broken_themes ) {
<p class="theme-autoupdate">
<# if ( data.autoupdate ) { #>
<a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="disable">
<span class="dashicons dashicons-update spin hidden"></span>
<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>
<span class="label"><?php _e( 'Disable auto-updates' ); ?></span>
</a>
<# } else { #>
<a href="{{{ data.actions.autoupdate }}}" class="toggle-auto-update" data-slug="{{ data.id }}" data-wp-action="enable">
<span class="dashicons dashicons-update spin hidden"></span>
<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>
<span class="label"><?php _e( 'Enable auto-updates' ); ?></span>
</a>
<# } #>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47909';
$wp_version = '5.5-alpha-47910';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.