Skip to content

Commit 1b515fe

Browse files
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) <noreply@anthropic.com>
1 parent 7144734 commit 1b515fe

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

‎src/wp-admin/css/common.css‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,6 @@ html.wp-toolbar {
22302230
/* one column on the dash */
22312231
@media only screen and (max-width: 799px) {
22322232
#wpbody-content .metabox-holder .postbox-container .empty-container {
2233-
border: 0;
22342233
outline: none;
22352234
height: 0;
22362235
min-height: 0;
@@ -2273,11 +2272,6 @@ html.wp-toolbar {
22732272
padding-right: 8px;
22742273
}
22752274

2276-
.rtl .postbox-header .handle-actions {
2277-
padding-right: 0;
2278-
padding-left: 8px;
2279-
}
2280-
22812275
/* Post box order and toggle buttons. */
22822276
.postbox .handle-order-higher,
22832277
.postbox .handle-order-lower,
@@ -2317,7 +2311,8 @@ html.wp-toolbar {
23172311
}
23182312

23192313
.sortable-placeholder:not(.empty-container .sortable-placeholder) {
2320-
border: 1px dashed #c3c4c7;
2314+
outline: 2px dashed rgba(0, 0, 0, 0.15);
2315+
outline-offset: -2px;
23212316
border-radius: 8px;
23222317
margin-bottom: 20px;
23232318
}

‎src/wp-admin/css/dashboard.css‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
}
6868

6969
#dashboard-widgets .postbox-container .empty-container {
70-
box-sizing: border-box;
71-
border: 1px dashed #c3c4c7;
70+
outline: 2px dashed rgba(0, 0, 0, 0.15);
71+
outline-offset: -2px;
7272
border-radius: 8px;
7373
height: 250px;
7474
}
@@ -1281,7 +1281,6 @@ a.rsswidget {
12811281
}
12821282

12831283
#dashboard-widgets .meta-box-sortables.empty-container {
1284-
border: 0;
12851284
margin-bottom: 0;
12861285
}
12871286
}

0 commit comments

Comments
 (0)