Accessibility: Media: Hide the invisible "file upload button" on media views from assistive technologies.

The button is visually hidden, but was announced by screen readers in workflows unrelated to file uploading, leading to confusion.

Props afercia, audrasjb, azaozz.
Fixes #47611.
Built from https://develop.svn.wordpress.org/trunk@47375


git-svn-id: http://core.svn.wordpress.org/trunk@47162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-25 20:44:06 +00:00
parent 1a9b7f8737
commit 8136532954
5 changed files with 13 additions and 3 deletions

View File

@ -1527,6 +1527,11 @@
display: inline-block !important;
}
div.moxie-shim.moxie-shim-html5,
div.moxie-shim.moxie-shim-html5 input[type="file"] {
display: none;
}
/**
* Selection
*/

File diff suppressed because one or more lines are too long

View File

@ -1526,6 +1526,11 @@
display: inline-block !important;
}
div.moxie-shim.moxie-shim-html5,
div.moxie-shim.moxie-shim-html5 input[type="file"] {
display: none;
}
/**
* Selection
*/

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-beta2-47374';
$wp_version = '5.4-beta2-47375';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.