WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/28/2015 04:27:24 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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

props afercia.
fixes #32713.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r32965 r32981  
    14481448    public function content_template() {
    14491449        ?>
    1450         <button type="button" class="button-secondary add-new-menu-item" aria-expanded="false" aria-controls="available-menu-items">
     1450        <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">
    14511451            <?php _e( 'Add Items' ); ?>
    14521452        </button>
Note: See TracChangeset for help on using the changeset viewer.