Media: Revert media uploader input change in [52059].
Based on follow-up research, this change was never necessary in order to use e2e tests in the media library uploader. Additionally, it created several complicated side effects. Without significant benefit, it's not valuable to pursue the change further. Follow up to [52059]. See #54168, #54411. Fixes #54168. git-svn-id: https://develop.svn.wordpress.org/trunk@52171 602fd350-edb4-49c9-b593-d223f7449a82
@@ -133,9 +133,6 @@ TABLE OF CONTENTS:
|
||||
color: #0a4b78;
|
||||
}
|
||||
|
||||
/* Support focus state on label designed as button in media uploader. */
|
||||
.drag-drop-inside p.drag-drop-buttons:focus-within label.button,
|
||||
.uploader-inline-content div.browser-container:focus-within label.button,
|
||||
.wp-core-ui .button.focus,
|
||||
.wp-core-ui .button:focus,
|
||||
.wp-core-ui .button-secondary:focus {
|
||||
|
||||
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -252,10 +252,7 @@ function wp_print_media_templates() {
|
||||
<div class="upload-ui">
|
||||
<h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2>
|
||||
<p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
|
||||
<div class="browser-container">
|
||||
<label class="button button-hero"><?php esc_html_e( 'Select Files' ); ?></label>
|
||||
<input type="file" class="browser screen-reader-text" aria-describedby="post-upload-info">
|
||||
</div>
|
||||
<button type="button" class="browser button button-hero" aria-labelledby="post-upload-info"><?php _e( 'Select Files' ); ?></button>
|
||||
</div>
|
||||
|
||||
<div class="upload-inline-status"></div>
|
||||
|
||||