Skip to content

Commit 42af191

Browse files
committed
Administration: Replace pure white body background on Font Library and Connectors pages.
The `wp-admin` integrated wrappers for the Font Library (`font-library.php`) and the new Connectors page (`options-connectors.php`) set an inline `body { background: #fff; }`, which is against established accessibility and UX best practices ("Never use full white"), causes white-on-white content cards to blend into the page background, and is inconsistent with every other core admin screen. This replaces the pure white override with `#f0f0f1`, the standard `wp-admin` body background color defined in `wp-admin/css/common.css`. The change restores visual separation between the white `.components-item` cards and their surrounding chrome and aligns these pages with the rest of the core admin UI. Remaining accessibility items from the ticket (inappropriate `<header>` landmark and ARIA landmark nesting) live in the Gutenberg `@wordpress/admin-ui` Page component and will be picked up on the next Gutenberg package sync. Props joedolson, afercia, hbhalodia, wildworks. See #65100. Made-with: Cursor
1 parent 67094ee commit 42af191

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/build/pages/font-library/page-wp-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function wp_font_library_wp_admin_render_page() {
226226
overflow-y: auto;
227227
}
228228
body {
229-
background: #fff;
229+
background: #f0f0f1;
230230
}
231231

232232
/* Reset wp-admin padding */

src/wp-includes/build/pages/options-connectors/page-wp-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function wp_options_connectors_wp_admin_render_page() {
226226
overflow-y: auto;
227227
}
228228
body {
229-
background: #fff;
229+
background: #f0f0f1;
230230
}
231231

232232
/* Reset wp-admin padding */

0 commit comments

Comments
 (0)