close

Make WordPress Core

Opened 6 days ago

Closed 5 days ago

Last modified 5 days ago

#64998 closed defect (bug) (worksforme)

up and down spinner arrows are getting unnecessary spacing in `<input type="number">` elements

Reported by: mehrazmorshed's profile mehrazmorshed Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: General Keywords: admin-reskin 2nd-opinion
Focuses: ui, css, administration Cc:

Description

up and down spinner arrows are getting unnecessary spacing in <input type="number"> elements

Screenshot: https://jumpshare.com/share/g8wpUN0oqZZj4txo6FOG

Theme: Twenty Twenty-Five
WordPress Version: 7.0-RC2

Attachments (3)

Screenshot at Mar 31 12-52-57.png (330.0 KB) - added by mehrazmorshed 6 days ago.
wp-contribution.png (71.0 KB) - added by anupkankale 6 days ago.
Huzaifa-media.png (130.5 KB) - added by huzaifaalmesbah 5 days ago.
The issue has already been fixed. You can verify it here: https://playground.wordpress.net/?wp=trunk

Download all attachments as: .zip

Change History (14)

#1 Image @anupkankale
6 days ago

  • Focuses administration added
  • Keywords reporter-feedback added
  • Version set to trunk

Tested on WordPress trunk (checked out today, March 31, 2026).

Could not reproduce the issue - the up/down spinner arrows on <input type="number"> elements appear to have correct spacing.

Tested in:

  • WordPress: trunk (latest)
  • Browser: Chrome [edge]
  • OS: Windows 11 (WSL2/Ubuntu)

Steps taken:

  1. Checked Settings → General page → Media Settings
  2. Inspected number input fields
  3. No unnecessary spacing visible on spinner arrows

Suggesting this may have been fixed in a recent commit, or may require more specific steps to reproduce. Could the reporter please confirm if the issue still exists and provide exact reproduction steps?

#2 Image @mehrazmorshed
6 days ago

The issue still exists in my side.
My WordPress version: 7.0-RC2-62162

#3 Image @anupkankale
6 days ago

My WordPress version (7.0-RC2-62153-src)

#4 Image @wildworks
5 days ago

  • Milestone changed from Awaiting Review to 7.0

Hi, I Think this problem was fixed reentry. See [62172]. Could you test it again with the nightly version of 7.0?

Last edited 5 days ago by wildworks (previous) (diff)

Image @huzaifaalmesbah
5 days ago

The issue has already been fixed. You can verify it here: https://playground.wordpress.net/?wp=trunk

#5 Image @wildworks
5 days ago

  • Keywords admin-reskin added; reporter-feedback removed
  • Milestone 7.0 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Thank you, let's close this now.

#6 Image @huzaifaalmesbah
5 days ago

@wildworks The issue is reproducible in WordPress 7.0-RC2-62162 but appears to be fixed in the 7.1-alpha-62182 nightly build.

Environment

  • WordPress: 7.0-RC2-62162
  • PHP: 8.2.30
  • Server: nginx/1.29.7
  • Database: mysqli (Server: 9.6.0 / Client: mysqlnd 8.2.30)
  • Browser: Chrome 146.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Plugin Check (PCP) 1.9.0
    • Test Reports 1.2.1
    • WordPress Beta Tester 4.0.0

Result

  • 7.0-RC2: Issue reproducible
  • 7.1-alpha (nightly): Issue resolved

https://i.ibb.co/jkswHxY0/7-0-nightly.png

#7 Image @mehrazmorshed
5 days ago

Won't we fix it in WordPress 7.0 final release?

#8 Image @wildworks
5 days ago

This issue has already been fixed in the latest 7.0 branch, so it should be resolved in the upcoming 7.0 RC release.

#9 Image @sabernhardt
5 days ago

I think this report is about the 4 pixels of padding on the right, which [61645] added to number inputs with the small-text class. The tiny-text class continues to set the right padding to zero.

The padding might not be necessary, but I expect it was intentional.

#10 Image @sabernhardt
5 days ago

  • Keywords 2nd-opinion added

On the Media Settings page, the inputs do seem unnecessarily narrow. Maybe the width and max-width could increase:

.options-media-php .small-text[name*="_size_"] {
  margin: 0 0 1em;
  width: auto; /* or set to specific value */
  max-width: 6em;
}

#11 Image @wildworks
5 days ago

I think this report is about the 4 pixels of padding on the right

Thank you, I misunderstood.

Maybe the width and max-width could increase:

I don't have strong option, but there might be an approach to increase the width itself to accommodate the increased padding.

  • src/wp-admin/css/forms.css

    diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
    index e4e09ca1b6..a283fc2e32 100644
    a b textarea.large-text { 
    496496}
    497497
    498498input.small-text {
    499        width: 50px;
     499       width: 54px;
    500500       padding: 0 8px;
    501501}
    502502
    label input.small-text { 
    505505}
    506506
    507507input[type="number"].small-text {
    508        width: 65px;
     508       width: 70px;
    509509       padding-right: 4px;
    510510}
Note: See TracTickets for help on using tickets.