Skip to content

Commit

Permalink
Site Editor: restore block-library editor.css outside canvas (#66556)
Browse files Browse the repository at this point in the history
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored and cbravobernal committed Oct 30, 2024
1 parent 8c17a7d commit 3736840
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions backport-changelog/6.8/7643.md
Original file line number Diff line number Diff line change
@@ -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
11 changes: 10 additions & 1 deletion lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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' );
Expand Down

1 comment on commit 3736840

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 3736840.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11597883823
📝 Reported issues:

Please sign in to comment.