Make WordPress Core


Ignore:
Timestamp:
07/19/2014 02:20:58 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Add screen reader text to announce that menu item accordion sections are expandable. Remove redundant title attribute.

props joedolson.
fixes #28866.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r29232 r29239  
    11311131                                        ?>
    11321132                                        <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
    1133                                                 <h3 class="accordion-section-title hndle" tabindex="0" title="<?php echo esc_attr( $box['title'] ); ?>"><?php echo esc_html( $box['title'] ); ?></h3>
     1133                                                <h3 class="accordion-section-title hndle" tabindex="0">
     1134                                                        <?php echo esc_html( $box['title'] ); ?>
     1135                                                        <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span>
     1136                                                </h3>
    11341137                                                <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
    11351138                                                        <div class="inside">
Note: See TracChangeset for help on using the changeset viewer.