#59967 closed defect (bug) (fixed)
Search Button Position Breaks When JavaScript is Turned Off
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.5 | Priority: | normal |
| Severity: | normal | Version: | 5.5 |
| Component: | Plugins | Keywords: | has-screenshots has-test-info has-patch commit |
| Focuses: | css, administration | Cc: |
Attachments (4)
Change History (17)
#2
@
2 years ago
- Component changed from General to Plugins
- Focuses css administration added; accessibility javascript removed
- Keywords has-patch added; needs-patch removed
Hi and thanks for the report!
For a simple fix, I added the top margin and related styles to the submit button.
#3
@
2 years ago
Test Report
Description
@sabernhardt Thanks for adding patch. This patch looks good for me.
Patch tested: 59967.diff
Environment
- WordPress: 6.5-alpha-56966-src
- PHP: 7.4.33
- Server: nginx/1.25.2
- Database: mysqli (Server: 5.7.43 / Client: mysqlnd 7.4.33)
- Browser: Chrome 118.0.0.0
- OS: macOS
- Theme: Twenty Twenty 2.4
- MU Plugins: None activated
- Plugins:
- Gutenberg 17.1.3
- Test Reports 1.0.0
Actual Results
This Issue resolved with patch ✅
Screenshots
| Before Apply Patch | After Apply Patch ✅ |
|
|
#4
@
2 years ago
Issue Reproduction & Testing Instruction
- Go to plugins > add new plugins
- Disable JavaScript in your browser
- If you experience the same issue mentioned in the image
- Apply patch mentioned above
- Provide Test Information Here
To write test report, you can use this documentation. https://make.wordpress.org/test/handbook/test-reports/patch-testing/.
#6
@
2 years ago
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: 59967.diff
Environment
- OS: macOS 14.1.1
- Web Server: Nginx
- PHP: 7.4.30
- WordPress: 6.4.1
- Browser: Firefox 120.0 and Microsoft Edge 119.0.2151.72
- Theme: Twenty Twenty-Four
- Active Plugins: None
Actual Results
When reproducing a bug:
- ❌ Search button is positioned too high.
When testing a patch to validate it works as expected:
- ✅ Issue resolved with patch.
Additional Notes
- Did not test in RTL.
Supplemental Artifacts
#7
@
2 years ago
- Keywords changes-requested has-testing-info added
- Owner set to hellofromTonya
- Status changed from new to accepted
- Version set to 5.5
I too can reproduce the reported issue.
@sabernhardt Should the same CSS change also be done in the RTL file, common-rtl.css? I'm thinking yes, but want to confirm with you. If yes, I can make the changes at commit (unless you prefer to create a new patch).
Some ticket updates:
#8
@
2 years ago
The patch worked in RTL and in multisite without JavaScript. However, the specificity of .wp-filter .search-form.search-plugins .button is too high because it overrides .js.wp-core-ui .hide-if-js { display: none; } when JavaScript is enabled.
#9
@
2 years ago
- Keywords needs-patch added; has-patch removed
Adding the no-js class seems to work.
.no-js .wp-filter .search-form.search-plugins .button
#10
@
2 years ago
- Keywords has-patch added; changes-requested needs-patch removed
Now the change is only in the scope of the search form when JS is off.



uses the same styles on the button as the select element and search text input