Make WordPress Core

Ticket #54168: 54168.2.diff

File 54168.2.diff, 1.3 KB (added by joedolson, 3 years ago)

Updated patch - focusable & visible focus

  • src/wp-admin/includes/media.php

     
    22462246                <div class="drag-drop-inside">
    22472247                <p class="drag-drop-info"><?php _e( 'Drop files to upload' ); ?></p>
    22482248                <p><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
    2249                 <p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select Files' ); ?>" class="button" /></p>
     2249                <p class="drag-drop-buttons"><label for="plupload-browse-button" class="button button-hero"><?php esc_attr_e( 'Select Files' ); ?></label><input id="plupload-browse-button" type="file" class="screen-reader-text" /></p>
    22502250                </div>
    22512251        </div>
    22522252        <?php
  • src/wp-includes/css/buttons.css

     
    133133        color: #0a4b78;
    134134}
    135135
     136/* Support focus state on label designed as button in media uploader. */
     137.drag-drop-inside p.drag-drop-buttons:focus-within label.button,
    136138.wp-core-ui .button.focus,
    137139.wp-core-ui .button:focus,
    138140.wp-core-ui .button-secondary:focus {