Make WordPress Core

Opened 5 weeks ago

Closed 4 weeks ago

#64809 closed defect (bug) (fixed)

[Admin reskin] Add Plugins search field border is not OK on small screen

Reported by: jsmansart's profile jsmansart Owned by: joedolson's profile joedolson
Milestone: 7.0 Priority: normal
Severity: normal Version: trunk
Component: Administration Keywords: admin-reskin has-patch commit
Focuses: Cc:

Description

When searching for a plugin to install, after the submit, the search input has focus and there is a border on that field.

Depending on the size screen, the upper border is not OK.

If the window size is upper than 1250px (1251px), the search input is on the same line than the links for categories (beta testing, featured, etc.)

If the window size is between 1135px and 1250px the search input go back to the line, but is too narrow to the links for categories and there the bug occurs.

If the window size is less than 1135px, there is a margin or padding between the links and the search input, so it's OK.

Attachments (3)

Capture d’écran 2026-03-05 à 12.23.16.png (33.0 KB) - added by jsmansart 5 weeks ago.
Capture d’écran 2026-03-05 à 12.33.53.png (38.9 KB) - added by jsmansart 5 weeks ago.
Capture d’écran 2026-03-05 à 12.34.07.png (37.1 KB) - added by jsmansart 5 weeks ago.

Download all attachments as: .zip

Change History (15)

#1 @joedolson
5 weeks ago

  • Keywords needs-patch admin-reskin added
  • Milestone changed from Awaiting Review to 7.0
  • Owner set to joedolson
  • Status changed from new to accepted
  • Version set to trunk

This ticket was mentioned in PR #11185 on WordPress/wordpress-develop by @hbhalodia.


5 weeks ago
#2

  • Keywords has-patch added; needs-patch removed

Trac ticket: https://core.trac.wordpress.org/ticket/64809

  • Target specific search form only when we have search results for the screen size.
  • Else we are already having a margin of 11px.
  • If we do not target specific when we have search results, it leads to extra spacing when there are no search results. So it goes to single line on specifc screen size without search results.

## Use of AI Tools

  • None

#3 @divyeshpatel01
5 weeks ago

Tested the patch on WordPress trunk.

Steps:

  1. Open Dashboard → Plugins → Add New.
  2. Resize browser width between 1135px–1250px.
  3. Focus the plugin search field.

Before patch:
Search field appears too close to navigation tabs and focus border look visually incorrect.
https://postimg.cc/dhZRk9L3

After applying the patch:
Spacing between the tabs and the search field is corrected and the border displays properly.
https://postimg.cc/CBssMLds

Patch works as expected.

#4 @noruzzaman
5 weeks ago

Test Report

Patch tested: https://github.com/WordPress/wordpress-develop/pull/11185

Environment

  • WordPress: 7.0-beta2-20260305.110908
  • PHP: 7.4.33
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
  • Browser: Chrome 145.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Actual Results

  1. ✅ Issue resolved with patch.
Before After
https://i.ibb.co.com/j9tDWWt6/before-patch-1200.png https://i.ibb.co.com/XrYbSbZB/after-patch-1200.png

@huzaifaalmesbah commented on PR #11185:


5 weeks ago
#5

I tested this PR fix at a 1140px screen width.
Before:
https://github.com/user-attachments/assets/62d158d0-2802-452d-b7cb-7dcb8e9973f3

After:
https://github.com/user-attachments/assets/f675bf5f-a8cb-4dd7-add2-2cfa7e4ae42c

#6 @amin7
5 weeks ago

Test Report


Patch tested: https://github.com/WordPress/wordpress-develop/pull/11185


Environment

WordPress: 7.0-beta3
PHP: 8.2.7
Server: ngnix
Browser: Chrome 145.0.0.0
OS: macOS
Theme: Twenty Twenty-Five
MU Plugins: None activated

Before Patch:
https://d.pr/i/r3I8bW

After Patch
https://d.pr/i/8amwQI

Result

✅ Issue resolved with patch.

@shailu25 commented on PR #11185:


5 weeks ago
#7

Plugin Search Border Issue is Resolved with PR✅

BeforeAfter
https://github.com/user-attachments/assets/d7dc9e3e-7023-4d34-a479-8a44f019a440https://github.com/user-attachments/assets/14ea87de-f4aa-4bdb-bbc0-907849c5026c

#8 follow-up: @r1k0
5 weeks ago

  • Keywords reporter-feedback added

I wasn't able to reproduce the broken border-top as displayed in this image by the reporter. @jsmansart is the defect the broken border-top, or the lack of margin for the screen sizes you have mentioned? Could you clarify this? If the issue is the former, are you still experiencing the issue?

I believe the patch is fixing another issue or part of the issue.

Updating keywords to get feedback from the reporter.

I tested the patch and it works.

Screenshots

Spacing Before:
https://i.ibb.co/ns2gzszT/plugin-search-box-before.png

Spacing After:
https://i.ibb.co/CK5g5vpG/plugin-search-box-after.png

Last edited 5 weeks ago by r1k0 (previous) (diff)

#9 in reply to: ↑ 8 @jsmansart
5 weeks ago

Replying to r1k0:

Thanks for your input.

I still can reproduce it without the patch.
If I add the following CSS rule on the element form.search-form .search-plugins:

margin: 11px 0;

This correct the behavior. So, I imagine this is a lack of a margin.

There is this rule that applies for smaller screens:

@media only screen and (max-width: 1138px) {
  .wp-filter .search-form {
    margin: 11px 0;
  }
}

I wasn't able to reproduce the broken border-top as displayed in this image by the reporter. @jsmansart is the defect the broken border-top, or the lack of margin for the screen sizes you have mentioned? Could you clarify this? If the issue is the former, are you still experiencing the issue?

I believe the patch is fixing another issue or part of the issue.

Updating keywords to get feedback from the reporter.

I tested the patch and it works.

Screenshots

Spacing Before:
https://i.ibb.co/ns2gzszT/plugin-search-box-before.png

Spacing After:
https://i.ibb.co/CK5g5vpG/plugin-search-box-after.png

#10 @r1k0
5 weeks ago

  • Keywords reporter-feedback removed

Updating keywords after the reporter provided feedback.

The patch works as expected and adds the necessary margin for screen sizes 1139–1250.

#11 @joedolson
4 weeks ago

  • Keywords commit added

#12 @joedolson
4 weeks ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 61941:

Admin: Fix plugin search alignment on intermediate viewports.

Add a margin on the plugin installation search form on screens between 1135 and 1250px.

Props jsmansart, hbhalodia, divyeshpatel01, noruzzaman, huzaifaalmesbah, amin7, shailu25, r1k0, joedolson.
Fixes #64809.

Note: See TracTickets for help on using tickets.