Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#65152 new enhancement

UI: Inconsistent left padding between buttons and select dropdowns in media views

Reported by: baikaresandeep007's profile baikare.sandeep007 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch reporter-feedback
Focuses: ui, css, administration Cc:

Description

In the media frame (e.g., when clicking "Add Media" in the editor), there is an inconsistency in the left padding between buttons (e.g., "Add Media File", "Bulk select") and the select dropdowns (e.g., "All media items", "All dates").

Current padding values:

  • Buttons: padding-left: 10px
  • Select dropdowns: padding-left: 8px

This creates a visually misaligned UI where the text inside dropdowns sits 2px closer to the left edge compared to buttons.

Expected Behavior

Both buttons and select dropdowns should have consistent left padding for better visual alignment.

Actual Behavior

The select dropdown has 8px left padding while buttons have 10px left padding, causing text misalignment when these elements appear side by side.

Screenshots

https://postimg.cc/gallery/Cxrh1Nh

Proposed Solution

Update the left padding of the select dropdown in media-views.css from 8px to 10px to match the button padding.

Attachments (2)

65152.patch (372 bytes) - added by baikare.sandeep007 6 weeks ago.
media button UI padding fixes
65152-final.patch (371 bytes) - added by baikare.sandeep007 6 weeks ago.
Updated patch css according to the refresh UI in 7.0

Download all attachments as: .zip

Change History (5)

@baikare.sandeep007
6 weeks ago

media button UI padding fixes

#1 @audrasjb
6 weeks ago

  • Keywords reporter-feedback added
  • Version trunk deleted

Hello and thanks for the ticket.
Please note that many parts of the interface have changed in WP 7.0.
Would you please check the incoming version to see if the problem is still occurring?
You can try 7.0 using this Playground link if you want.
Thank you

#2 @baikare.sandeep007
6 weeks ago

Hi @audrasjb
Thanks for playground link of 7.0, I can confirm that the issue still persists on the new UI as well as all the listing pages.

Addition to that in new UI button left padding is increased to 12px and for select it is 8px

[Screenshot](https://postimg.cc/kRgN4RwY)
[Post listing page Screenshot](https://postimg.cc/mzt2gbCf)

Last edited 6 weeks ago by baikare.sandeep007 (previous) (diff)

This ticket was mentioned in PR #11681 on WordPress/wordpress-develop by @baikare.sandeep007.


6 weeks ago
#3

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

## Use of AI Tools
NO

## Description
In the Posts, media pages there is an inconsistency in the _left padding_ between buttons (e.g., "Add Media File", "Add Post", "Apply", "Filter") and the select dropdowns (e.g., "Bulk Actions", "All Categories", "All dates").

## Screenshots

### Button Before
padding : 0 12px i.e. padding-left will be 12px

https://github.com/user-attachments/assets/6d1f5a64-e39c-47b1-856e-62ad431e3f1b

### Select Before

padding: 0 24px 0 8px;

https://github.com/user-attachments/assets/24089299-f86c-4f62-8eb1-9bb71b3a043d
### Select After

padding: 0 24px 0 12px;

https://github.com/user-attachments/assets/b8dc9353-3eed-4b1e-8a36-7f9f8b9ebda3

## Expected Behavior
Both buttons and select dropdowns should have consistent left padding for better visual alignment.

## Actual Behavior
The select dropdown has 8px left padding while buttons have 12px left padding, causing text misalignment when these elements appear side by side.

## Proposed Solution
Update the left padding of the select dropdown in /wp-admin/css/forms.css from 8px to 12px to match the button padding.

## Tested:
WordPress: Playground and 7.0 RC-2 both
OS: Ubuntu 24.04
Browser: Version 146.0.7680.153 (Official Build) (64-bit)

@baikare.sandeep007
6 weeks ago

Updated patch css according to the refresh UI in 7.0

Note: See TracTickets for help on using tickets.