Administration: Consistent positioning and size of search form.

Move the visual positioning of the posts search form into it's DOM position. Fixes an accessibility bug where the keyboard focus sequence did not match the visual order. Change the media search form in list view to match the format of other post views. Give search forms a consistent layout on mobile.

Props oglekler, sabernhardt, joedolson.
Fixes #57949.

git-svn-id: https://develop.svn.wordpress.org/trunk@56023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson
2023-06-25 17:20:01 +00:00
parent ed54bb7444
commit ced07754fa
5 changed files with 19 additions and 30 deletions

View File

@@ -1081,7 +1081,6 @@ th.action-links {
}
.wp-filter .search-form input[type="search"] {
margin: 1px 0;
width: 280px;
max-width: 100%;
}
@@ -4063,6 +4062,7 @@ img {
}
.wp-filter .search-form input[type="search"] {
width: 100%;
font-size: 1rem;
}
@@ -4116,10 +4116,6 @@ img {
.nav-tab-active:focus:active {
border-bottom: 1px solid #c3c4c7;
}
.wp-filter .search-form input[type="search"] {
width: 100%;
}
}
@media screen and (max-width: 480px) {

View File

@@ -1650,11 +1650,9 @@ table.form-table td .updated p {
p.search-box {
float: none;
position: absolute;
bottom: 0;
width: 98%;
height: 90px;
width: 100%;
margin-bottom: 20px;
display: flex;
}
p.search-box input[name="s"] {

View File

@@ -583,16 +583,6 @@ border color while dragging a file over the uploader drop area */
margin-top: 0;
}
.media-search-input-label {
margin: 0 .2em 0 0;
vertical-align: baseline;
}
.media-frame.mode-grid .media-search-input-label {
position: static;
margin: 0 .5em 0 0;
}
.attachments-browser .media-toolbar-secondary > .media-button {
margin-right: 10px;
}