Editor: Improve accessibility of new custom field UI.

Add labels; change Enter new/Cancel link to a button; move focus to input when creating new field; move Add Custom Field out of fields table. 

Props jane, batmoo, karmatosed, franrosa, sabernhardt, annashopina, oglekler, joedolson.
Fixes #15631.

git-svn-id: https://develop.svn.wordpress.org/trunk@56018 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson
2023-06-24 14:30:31 +00:00
parent ffc386bfbd
commit d932659aba
3 changed files with 17 additions and 18 deletions
+6 -1
View File
@@ -1068,6 +1068,10 @@ form#tags-filter {
padding: 0 8px 8px;
}
#postcustom #postcustomstuff .add-custom-field {
padding: 12px 8px 8px;
}
#side-sortables #postcustom #postcustomstuff .submit {
margin: 0;
padding: 0;
@@ -1118,7 +1122,8 @@ form#tags-filter {
width: auto;
}
#postcustomstuff #newmetaleft a {
#postcustomstuff #newmetaleft a,
#postcustomstuff #newmeta-button {
display: inline-block;
margin: 0 8px 8px;
text-decoration: none;