Accessibility: Improve the image "Alternative Text" field in the Edit Media screen.

Brings parity with the changes for the Media Views introduced in [44900].
- moves the alt text field to the top as first field
- adds an explanatory text with a link pointing to the W3C "alt decision tree" tutorial
- adds `aria-describedby` to target the explanatory text
- adjusts the CSS and indentation

Props chetan200891.
Fixes #46875.

Built from https://develop.svn.wordpress.org/trunk@45158


git-svn-id: http://core.svn.wordpress.org/trunk@44967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia
2019-04-10 20:00:50 +00:00
parent f27917373c
commit 2887cea50f
6 changed files with 44 additions and 16 deletions
+7
View File
@@ -825,6 +825,13 @@ border color while dragging a file over the uploader drop area */
/*------------------------------------------------------------------------------
14.2 - Image Editor
------------------------------------------------------------------------------*/
.wp_attachment_details .attachment-alt-text {
margin-bottom: 5px;
}
.wp_attachment_details .attachment-alt-text-description {
margin-top: 5px;
}
.wp_attachment_details label[for="content"] {
font-size: 13px;
+1 -1
View File
File diff suppressed because one or more lines are too long
+7
View File
@@ -825,6 +825,13 @@ border color while dragging a file over the uploader drop area */
/*------------------------------------------------------------------------------
14.2 - Image Editor
------------------------------------------------------------------------------*/
.wp_attachment_details .attachment-alt-text {
margin-bottom: 5px;
}
.wp_attachment_details .attachment-alt-text-description {
margin-top: 5px;
}
.wp_attachment_details label[for="content"] {
font-size: 13px;
+1 -1
View File
File diff suppressed because one or more lines are too long