From 71447343e20e4e0b56da60a09037ecbde15a832f Mon Sep 17 00:00:00 2001 From: Poli Gilad <83961704+poligilad-auto@users.noreply.github.com> Date: Sat, 27 Jun 2026 17:00:51 +0200 Subject: [PATCH 1/2] Administration: Improve dashboard meta box control visuals --- src/wp-admin/css/common.css | 7 +++++++ src/wp-admin/css/dashboard.css | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 10112851eda1f..7ee3a61a0550f 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -2230,6 +2230,7 @@ html.wp-toolbar { /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content .metabox-holder .postbox-container .empty-container { + border: 0; outline: none; height: 0; min-height: 0; @@ -2269,6 +2270,12 @@ html.wp-toolbar { .postbox-header .handle-actions { flex-shrink: 0; + padding-right: 8px; +} + +.rtl .postbox-header .handle-actions { + padding-right: 0; + padding-left: 8px; } /* Post box order and toggle buttons. */ diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index b4c5dc8ef76e0..a4dca49adb192 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -67,11 +67,10 @@ } #dashboard-widgets .postbox-container .empty-container { - outline: 2px dashed rgba(0, 0, 0, 0.15); - outline-offset: -2px; + box-sizing: border-box; + border: 1px dashed #c3c4c7; border-radius: 8px; height: 250px; - margin: 4px; } /* Only highlight drop zones when dragging. */ @@ -82,7 +81,7 @@ } .is-dragging-metaboxes #dashboard-widgets .postbox-container .empty-container { - background: rgba(0, 0, 0, 0.01); + background: rgba(var(--wp-admin-theme-color--rgb), 0.04); } #dashboard-widgets .postbox-container .empty-container::after { @@ -1282,6 +1281,7 @@ a.rsswidget { } #dashboard-widgets .meta-box-sortables.empty-container { + border: 0; margin-bottom: 0; } } From 1b515fec6aa3863722f63521fef00c95a3d6edc2 Mon Sep 17 00:00:00 2001 From: Poli Gilad <83961704+poligilad-auto@users.noreply.github.com> Date: Tue, 13 Oct 2026 09:55:48 +0200 Subject: [PATCH 2/2] Administration: Address review feedback on meta box drop area visuals. Restore the 2px dashed outline for empty dashboard drop areas and use the same outline for the meta box drag placeholder, so both drop areas match. Remove the manual RTL ruleset, since the build flips the padding automatically, and the border resets that are no longer needed. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/wp-admin/css/common.css | 9 ++------- src/wp-admin/css/dashboard.css | 5 ++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 7ee3a61a0550f..2af54edefd602 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -2230,7 +2230,6 @@ html.wp-toolbar { /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content .metabox-holder .postbox-container .empty-container { - border: 0; outline: none; height: 0; min-height: 0; @@ -2273,11 +2272,6 @@ html.wp-toolbar { padding-right: 8px; } -.rtl .postbox-header .handle-actions { - padding-right: 0; - padding-left: 8px; -} - /* Post box order and toggle buttons. */ .postbox .handle-order-higher, .postbox .handle-order-lower, @@ -2317,7 +2311,8 @@ html.wp-toolbar { } .sortable-placeholder:not(.empty-container .sortable-placeholder) { - border: 1px dashed #c3c4c7; + outline: 2px dashed rgba(0, 0, 0, 0.15); + outline-offset: -2px; border-radius: 8px; margin-bottom: 20px; } diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index a4dca49adb192..5ac8744233f93 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -67,8 +67,8 @@ } #dashboard-widgets .postbox-container .empty-container { - box-sizing: border-box; - border: 1px dashed #c3c4c7; + outline: 2px dashed rgba(0, 0, 0, 0.15); + outline-offset: -2px; border-radius: 8px; height: 250px; } @@ -1281,7 +1281,6 @@ a.rsswidget { } #dashboard-widgets .meta-box-sortables.empty-container { - border: 0; margin-bottom: 0; } }