Customizer: Add an aria-label attribute to the Add Items button to improve accessibility.

props afercia.
fixes #32713.

git-svn-id: https://develop.svn.wordpress.org/trunk@32981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-06-28 04:27:24 +00:00
parent a796d187b3
commit 5e3dcc772d

View File

@ -1447,7 +1447,7 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
*/
public function content_template() {
?>
<button type="button" class="button-secondary add-new-menu-item" aria-expanded="false" aria-controls="available-menu-items">
<button type="button" class="button-secondary add-new-menu-item" aria-label="<?php esc_attr_e( 'Add or remove menu items' ); ?>" aria-expanded="false" aria-controls="available-menu-items">
<?php _e( 'Add Items' ); ?>
</button>
<button type="button" class="not-a-button reorder-toggle">