From 37368403cf86f25956d342875c4beec661e102d1 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:34:58 +0100 Subject: [PATCH] Site Editor: restore block-library editor.css outside canvas (#66556) Co-authored-by: ellatrix Co-authored-by: t-hamano --- backport-changelog/6.8/7643.md | 1 + lib/client-assets.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/backport-changelog/6.8/7643.md b/backport-changelog/6.8/7643.md index e3c923a487be06..f83aa411f9fff3 100644 --- a/backport-changelog/6.8/7643.md +++ b/backport-changelog/6.8/7643.md @@ -1,3 +1,4 @@ https://github.com/WordPress/wordpress-develop/pull/7643 * https://github.com/WordPress/gutenberg/pull/66432 +* https://github.com/WordPress/gutenberg/pull/66556 diff --git a/lib/client-assets.php b/lib/client-assets.php index f6b17ffcce68be..f95ac27f81d010 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -361,6 +361,15 @@ function gutenberg_register_packages_styles( $styles ) { ); $styles->add_data( 'wp-editor-classic-layout-styles', 'rtl', 'replace' ); + gutenberg_override_style( + $styles, + 'wp-block-library-editor', + gutenberg_url( 'build/block-library/editor.css' ), + array(), + $version + ); + $styles->add_data( 'wp-block-library-editor', 'rtl', 'replace' ); + gutenberg_override_style( $styles, 'wp-edit-blocks', @@ -410,7 +419,7 @@ function gutenberg_register_packages_styles( $styles ) { $styles, 'wp-edit-site', gutenberg_url( 'build/edit-site/style.css' ), - array( 'wp-components', 'wp-block-editor', 'wp-editor', 'common', 'forms', 'wp-commands', 'wp-preferences' ), + array( 'wp-components', 'wp-block-editor', 'wp-editor', 'wp-block-library-editor', 'common', 'forms', 'wp-commands', 'wp-preferences' ), $version ); $styles->add_data( 'wp-edit-site', 'rtl', 'replace' );