Opened 6 months ago
Last modified 10 days ago
#65300 new defect (bug)
Increase Minor Bottom Spacing for Labels “Filter by type” and “Filter by date” in Media Modal
| Reported by: | deeppatel8950 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Media | Version: | 7.0 |
| Severity: | normal | Keywords: | has-patch changes-requested |
| Cc: | Focuses: | ui, css, administration |
Description
While reviewing the WordPress Media Library modal (Select or Upload Media), I noticed a minor UI spacing issue with the labels:
Filter by type
Filter by date
The spacing between the label text and their dropdown fields looks slightly tight and could be improved for better visual consistency and readability.
Attachments (3)
Change History (22)
This ticket was mentioned in PR #11927 on WordPress/wordpress-develop by @ankitkumarshah.
6 months ago
#1
#3
@
6 months ago
- Milestone Awaiting Review → 7.0.1
Moving to the 7.0.1 milestone for consideration.
@wildworks commented on PR #11927:
5 months ago
#4
Thanks for the PR. However, the attached screenshot does not match my local trunk branch.
First, the media library itself lacks visual labels in the first place:
Furthermore, the .media-frame.mode-grid .media-toolbar selector should not apply to the media library launched in the block editor.
Could you test again if this PR is correct?
@masteradhoc commented on PR #11927:
5 months ago
#5
@Infinite-Null Thank you very much for the PR. i can confirm the findings of @t-hamano.
The media library looks fine without this PR:
With this PR it looks misaligned:
--
As we'll the author reported the labels to be too close together - specifically at the select or upload media screen (right @deeppatel8950?)
This hasnt been fixed yet. Can you take a look at this?
If you dont have time currently no worries! Feel free to close this PR.
@ankitkumarshah commented on PR #11927:
5 months ago
#7
Thanks for checking this!
There might have been an environment-specific issue when I initially tested this. In fact, I attached a screenshot in the PR itself of what I was seeing.
Based on the feedback, I've updated the PR to target only the media modal used for selecting media in the block editor.
Could you please test the latest changes and let me know if they now match the expected behavior?
@masteradhoc commented on PR #11927:
5 months ago
#8
@ankitkumarshah commented on PR #11927:
5 months ago
#9
Done! I've added some extra spacing (that is 8px) between the fields for smaller screens as well. Could you please take another look and let me know if it looks good now?
#10
@
5 months ago
- Milestone 7.0.1 → 7.0.2
As the RC for WP 7.0.1 is expected to land tomorrow we'll have to punt this to 7.0.2.
#11
@
4 months ago
Tested the patch and confirmed the issue is resolved.
The spacing below the "Filter by type" and "Filter by date" labels in the Media Modal is now consistent and provides better visual separation from their corresponding dropdown fields.
Kindly refer below screenshot:-
https://prnt.sc/voKZ7fHPjZr5
#13
@
3 months ago
- Milestone 7.0.3 → 7.1
As there will be no 7.0.3 release planned right now im moving this bug to 7.1 for consideration.
This ticket was mentioned in Slack in #core-test by r1k0. View the logs.
2 months ago
#16
@
2 months ago
Test Report
Patch tested: https://github.com/WordPress/wordpress-develop/pull/11927.patch
Environment
- WordPress: 7.1
Steps taken
- Added new page.
- Added page Title and Image block and clicked on Media Library.
- Checked the Filter by type and Filter by date labels and their corresponding dropdown fields.
- Verified the spacing between the labels and dropdown fields before applying the patch.
- Applied/tested the patch from PR.
- Reopened the Media Modal and checked the same labels and dropdown fields.
- Confirmed that the bottom spacing between the labels and dropdown fields has been increased and the UI appears more consistent and readable.
- ✅ Patch is solving the problem.
Expected result
- The Filter by type and Filter by date labels should have slightly increased bottom spacing from their dropdown fields.
- The additional spacing should improve readability and provide better visual consistency within the Media Modal.
- No layout or functionality regressions should be introduced.
Additional Notes
- Tested using WordPress Playground.
- The patch successfully improves the minor spacing issue between the filter labels and their dropdown fields.
- No functional issues were observed during testing.
Screenshots with results
Support Content
- PR: https://github.com/WordPress/wordpress-develop/pull/11927
- Testing environment: WordPress Playground
This ticket was mentioned in Slack in #core by im3dabasia1. View the logs.
11 days ago
#18
@
11 days ago
As per today’s 7.2 bug scrub:
The PR has been updated and tested since the earlier feedback. @ankitkumarshah, is it ready for review, and have all the feedback points been addressed? @masteradhoc and/or @wildworks , would you be able to review it?
@wildworks commented on PR #11927:
10 days ago
#19
@Infinite-Null, sorry for the late reply. Could you resolve the conflicts and take another look so that we can make a final decision on whether to merge this PR?




https://core.trac.wordpress.org/ticket/65300