close

Make WordPress Core

Opened 13 days ago

Last modified 11 days ago

#64937 new defect (bug)

Image editor: scale and crop input size mismatch with button and info icon not using new color

Reported by: huzaifaalmesbah's profile huzaifaalmesbah Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

In the Image Editor (Scale and Crop sections), the UI appears inconsistent. Input fields are not using compact styles, button size does not align with inputs, and the info icon uses old color.

Related discussion:
#64759 comment:9
PR #11091 comment

Attachments (1)

Huzaifa-2026032410303057.png (70.5 KB) - added by huzaifaalmesbah 13 days ago.

Download all attachments as: .zip

Change History (4)

#1 follow-up: Image @ozgursar
12 days ago

input fields are set to min-height: 40px in /wp-admin/css/forms.css?ver=7.0-beta6-62085-src. Reducing them to 32px might solve the size mismatch.

input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="week"] {
	padding: 0 12px;
	/* inherits font size 14px */
	line-height: 2.71428571; /* 38px for 40px min-height */
	min-height: 40px;
}

https://i.imgur.com/Bc3whMd.png

#2 Image @huzaifaalmesbah
12 days ago

Expected compact styles Inputs:

min-height: 32px;
line-height: 2.14285714;
padding: 0 8px;

And the info icon should use:

var(--wp-admin-theme-color, #3858e9);

#3 in reply to: ↑ 1 Image @wildworks
11 days ago

input fields are set to min-height: 40px in /wp-admin/css/forms.css?ver=7.0-beta6-62085-src. Reducing them to 32px might solve the size mismatch.

Please note that the 40px height is intentional and cannot be changed to a default size of 32px. I think we should apply new 40px default size for buttons as well.

Note: See TracTickets for help on using tickets.