Make WordPress Core

Changeset 56228


Ignore:
Timestamp:
07/13/2023 04:40:21 PM (19 months ago)
Author:
joedolson
Message:

Media: Set default state for image rotation button.

Adds aria-expanded="false" as default state for image rotation toggle in admin image editor. See #50523.

Props joedolson.
Fixes #58800.

File:
1 edited

Legend:

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

    r56157 r56228  
    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
Note: See TracChangeset for help on using the changeset viewer.