Make WordPress Core

Opened 12 days ago

Closed 8 days ago

#64682 closed defect (bug) (fixed)

Inconsistent vertical spacing in “At a Glance” widget between heading and content

Reported by: mohitbsf's profile mohitbsf Owned by: audrasjb's profile audrasjb
Milestone: 7.0 Priority: normal
Severity: normal Version:
Component: Administration Keywords: admin-reskin has-screenshots has-patch
Focuses: css Cc:

Description

WordPress version: 7.0
Environment: Clean install, default theme, no active plugins

Steps to Reproduce

Log in to WordPress Dashboard

Locate the “At a Glance” widget

Compare the spacing between the widget title and the first content item

Compare this spacing with other Dashboard widgets

Expected Result

Spacing between the widget heading (“At a Glance”) and the first content item should be consistent with other Dashboard widgets.

Actual Result

There is noticeably larger vertical spacing between the heading and the first item (“1 Published post”) compared to other widgets. The spacing feels inconsistent within the Dashboard layout.

Additional Notes

Reproducible on fresh installation

No custom admin CSS

May be related to margin or padding differences specific to this widget

Attachments (3)

Screen Shot 2026-02-21 at 00.38.20 (1).png (112.6 KB) - added by mohitbsf 12 days ago.
before.png (26.8 KB) - added by adnanhyder 9 days ago.
Before Apply Patch
after.png (28.2 KB) - added by adnanhyder 9 days ago.
After Apply Patch ✅

Download all attachments as: .zip

Change History (8)

#1 @audrasjb
12 days ago

  • Keywords admin-reskin added
  • Milestone changed from Awaiting Review to 7.0

Moving to 7.0 and assigning admin-reskin, just in case.

This ticket was mentioned in PR #10992 on WordPress/wordpress-develop by @opurockey.


12 days ago
#2

  • Keywords has-patch added

Ticket : https://core.trac.wordpress.org/ticket/64682

## Summary

This patch standardizes the vertical spacing between the heading and the first content item in the “At a Glance” admin dashboard widget to match the spacing conventions used by other dashboard widgets.

## Description

The “At a Glance” widget currently exhibits noticeably larger vertical spacing between the widget title and its first content line (e.g., “1 Published post”) compared to other dashboard widgets. This inconsistency affects the visual rhythm of the admin dashboard and deviates from expected UI spacing standards.

This change adjusts the relevant CSS styles so that the spacing between the heading and content aligns with other widgets, improving visual consistency and coherence within the Dashboard.

## Changes Included

  • Modified CSS for the “At a Glance” widget to reduce the vertical spacing between the widget heading and the first content element.
  • Ensured the updated spacing matches that of other core dashboard widgets for a consistent layout.
  • No functional behavior changes beyond visual spacing adjustments.

## Rationale

  • Corrects a UI inconsistency introduced in the admin dashboard layout.
  • Aligns the “At a Glance” widget with existing spacing conventions for better visual harmony and user experience.

## Testing

  • Verified the updated spacing on a clean install of WordPress trunk (7.0), default theme, and no active plugins.
  • Confirmed that the adjusted spacing matches other dashboard widgets without visual regressions.

## Screenshot

https://github.com/user-attachments/assets/e9577658-9b55-40a3-9d7d-328f2046a92b

#3 @adnanhyder
9 days ago

Patch Testing Report

Patch Tested: https://github.com/WordPress/wordpress-develop/pull/10992
Environment

WordPress: 7.0-beta1-61709-src
PHP: 8.2.29
Server: nginx/1.29.5
Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.2.29)
Browser: Firfox developer edition 148.0b15 (64-bit)
OS: Windows 11
Theme: Twenty Twenty-Five 1.4
MU Plugins: None activated
Plugins:

Test Reports 1.2.1

Steps taken

Installed a fresh WordPress 7.0-beta1.
Logged in to the WordPress admin dashboard.
Navigated to Dashboard → Home.
Observed the At a Glance widget.
Applied PR.
Refreshed the dashboard and verified alignment.
✅ Patch is solving the problem

Expected result
spacing matches other dashboard widgets without visual regressions.

Before Patch
https://xpertcodes.com/wp-content/uploads/2026/02/before.png

After Patch
https://xpertcodes.com/wp-content/uploads/2026/02/after.png


@adnanhyder
9 days ago

Before Apply Patch

@adnanhyder
9 days ago

After Apply Patch ✅

#4 @audrasjb
9 days ago

  • Owner set to audrasjb
  • Status changed from new to reviewing

Self assigning for final review and commit consideration.

#5 @audrasjb
8 days ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 61732:

Administration: Fix inconsistent vertical spacing in “At a Glance” widget.

This changeset standardizes the vertical spacing between the heading and the first content item in the “At a Glance” admin dashboard widget to match the spacing conventions used by other dashboard widgets.

Props mohitbsf, opurockey, adnanhyder.
Fixes #64682.

Note: See TracTickets for help on using tickets.