Opened 4 months ago
Closed 3 months ago
#64681 closed defect (bug) (fixed)
“Dismiss” text and close icon not vertically center aligned in Dashboard welcome banner
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | admin-reskin has-patch commit |
| Focuses: | ui, css | Cc: |
Description
WordPress version: 7.0
Environment: Clean install, default theme (Twenty Twenty-Five), no active plugins
Steps to Reproduce
Log in to a fresh WordPress installation
Go to Dashboard
Observe the Welcome banner at the top
Look at the “Dismiss” label and the “X” icon in the top right corner
Expected Result
The “Dismiss” text and the “X” icon should be vertically center aligned within the banner area and aligned consistently with each other.
Actual Result
The “Dismiss” text and the “X” icon appear slightly misaligned vertically. They are not visually centered relative to the banner height and do not align consistently.
Additional Notes
Occurs with no plugins activated
Reproducible in new default admin color scheme
Appears to be a CSS alignment issue in the Dashboard welcome panel
Attachments (3)
Change History (9)
#1
@
4 months ago
- Focuses ui added
- Keywords admin-reskin added
- Milestone changed from Awaiting Review to 7.0
This ticket was mentioned in PR #10993 on WordPress/wordpress-develop by @opurockey.
4 months ago
#2
- Keywords has-patch added
Ticket: https://core.trac.wordpress.org/ticket/64681
## Summary
This patch corrects the vertical alignment of the “Dismiss” label and the close (“X”) icon in the Dashboard Welcome banner so both elements are visually centered and consistently aligned within the banner area.
## Description
On a fresh install of WordPress (7.0) with no plugins active and the default theme, the “Dismiss” text and associated close icon in the Dashboard welcome banner appear slightly misaligned vertically relative to each other and the banner height. This discrepancy is a CSS alignment issue that affects visual harmony and consistency with the admin UI.
This change updates the necessary CSS styles to ensure both the “Dismiss” text and the close icon are vertically center aligned within the welcome banner. It aligns visual layout with expected admin design standards without altering functional behavior.
## Changes Included
- Adjusted CSS rules for the Dashboard welcome banner to vertically center the “Dismiss” text and close (“X”) icon.
- No functional behavior changes beyond visual alignment adjustments.
## Rationale
- Improves visual consistency of the welcome banner.
- Ensures UI alignment matches WordPress admin styling norms.
- Eliminates a small but noticeable layout misalignment in the core Dashboard interface.
## Testing
- Tested in a clean WordPress 7.0 install with default theme and no active plugins.
- Verified vertical alignment of “Dismiss” text and close icon in multiple admin color schemes.
- Confirmed no regressions in adjacent UI elements.
## Screenshot
#3
@
4 months ago
Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/10993
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: Chrome 145.0.0.0
- OS: macOS
- 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 Welcome banner alignment issue.
- Applied PR.
- Refreshed the dashboard and verified alignment.
- ✅ Patch is solving the problem
Expected result
- The “Dismiss” text and the close (“X”) icon should be vertically centered within the welcome banner.
- Both elements should align consistently with each other.
Screenshots/Screencast with results
| Before Apply Patch | After Apply Patch ✅ |
|
|


Please refer to the X icon mark