Make WordPress Core


Ignore:
Timestamp:
06/27/2015 10:04:32 AM (10 years ago)
Author:
ocean90
Message:

Customizer: Add an aria-expanded attribute to the Add Menu button to improve accessibility.

props afercia.
fixes #32791.

File:
1 edited

Legend:

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

    r32965 r32971  
    563563        ?>
    564564        <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
    565             <button type="button" class="button-secondary add-new-menu-item add-menu-toggle">
     565            <button type="button" class="button-secondary add-new-menu-item add-menu-toggle" aria-expanded="false">
    566566                <?php echo esc_html( $this->title ); ?>
    567                 <span class="screen-reader-text"><?php _e( 'Press return or enter to open' ); ?></span>
    568567            </button>
    569568            <ul class="new-menu-section-content"></ul>
Note: See TracChangeset for help on using the changeset viewer.