Make WordPress Core

Ticket #58800: 58800.diff

File 58800.diff, 2.5 KB (added by joedolson, 12 months ago)

Add aria-expanded to toggle

  • src/wp-admin/includes/image-edit.php

     
    6262                        <button type="button" onclick="imageEdit.toggleCropTool( <?php echo "$post_id, '$nonce'"; ?>, this );" aria-expanded="false" aria-controls="imgedit-crop" class="imgedit-crop button disabled" disabled><?php esc_html_e( 'Crop' ); ?></button>
    6363                        <button type="button" class="imgedit-scale button" onclick="imageEdit.toggleControls(this);" aria-expanded="false" aria-controls="imgedit-scale"><?php esc_html_e( 'Scale' ); ?></button>
    6464                        <div class="imgedit-rotate-menu-container">
    65                                 <button type="button" aria-controls="imgedit-rotate-menu" class="imgedit-rotate button" onclick="imageEdit.togglePopup(this)"><?php esc_html_e( 'Image Rotation' ); ?></button>
     65                                <button type="button" aria-controls="imgedit-rotate-menu" class="imgedit-rotate button" aria-expanded="false" onclick="imageEdit.togglePopup(this)"><?php esc_html_e( 'Image Rotation' ); ?></button>
    6666                                <div id="imgedit-rotate-menu" class="imgedit-popup-menu">
    6767                        <?php
    6868                        // On some setups GD library does not provide imagerotate() - Ticket #11536.