Accessibility: add text to the updates link in the toolbar, props SergeyBiryukov, fixes #21333
git-svn-id: https://develop.svn.wordpress.org/trunk@21425 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0630d134d2
commit
d5cdd76bde
@ -617,6 +617,7 @@ function wp_admin_bar_updates_menu( $wp_admin_bar ) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
$title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>';
|
$title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>';
|
||||||
|
$title .= '<legend class="screen-reader-text"><span>' . $update_data['title'] . '</span></legend>';
|
||||||
|
|
||||||
$wp_admin_bar->add_menu( array(
|
$wp_admin_bar->add_menu( array(
|
||||||
'id' => 'updates',
|
'id' => 'updates',
|
||||||
|
@ -607,15 +607,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Skip link */
|
/* Skip link */
|
||||||
#wpadminbar #wpadminbar-shortcut {
|
#wpadminbar #wpadminbar-shortcut,
|
||||||
|
#wpadminbar .screen-reader-text,
|
||||||
|
#wpadminbar .screen-reader-text span {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -1000em;
|
left: -1000em;
|
||||||
top: -1000em;
|
top: -1000em;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpadminbar #wpadminbar-shortcut:focus {
|
#wpadminbar #wpadminbar-shortcut:focus {
|
||||||
|
Loading…
Reference in New Issue
Block a user