#64998 closed defect (bug) (worksforme)
up and down spinner arrows are getting unnecessary spacing in `<input type="number">` elements
| Reported by: |
|
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)
Change History (14)
#4
@
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?
@
5 days ago
The issue has already been fixed. You can verify it here: https://playground.wordpress.net/?wp=trunk
#5
@
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
@
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
#8
@
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
@
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
@
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
@
5 days ago
I think this report is about the 4 pixels of padding on the right
Thank you, I misunderstood.
Maybe the
widthandmax-widthcould 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 { 496 496 } 497 497 498 498 input.small-text { 499 width: 5 0px;499 width: 54px; 500 500 padding: 0 8px; 501 501 } 502 502 … … label input.small-text { 505 505 } 506 506 507 507 input[type="number"].small-text { 508 width: 65px;508 width: 70px; 509 509 padding-right: 4px; 510 510 }

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:
Steps taken:
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?