From 2dc568464e09be30927ac2cba21a3fd30ecfcd4d Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Wed, 29 Nov 2023 16:43:15 +0000 Subject: [PATCH] Plugins: Fix Add Plugin search button pos when JS off. When JavaScript is disabled, the Add Plugins screen's search button position was too high in comparison to the search text field. This fix reuses the CSS declaration to keep field and button aligned. By targeting the `.no-js` class, the CSS specificity is not impacted when JavaScript is enabled. Follow up to [48281], [30830]. Props devmuhib, sabernhardt, huzaifaalmesbah, hellofromTonya. Fixes #59967. git-svn-id: https://develop.svn.wordpress.org/trunk@57144 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 2aeac136ca..2e6e605ce2 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1118,7 +1118,8 @@ th.action-links { } .wp-filter .search-form.search-plugins select, -.wp-filter .search-form.search-plugins .wp-filter-search { +.wp-filter .search-form.search-plugins .wp-filter-search, +.no-js .wp-filter .search-form.search-plugins .button { display: inline-block; margin-top: 10px; vertical-align: top;