Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Omar Alshaker
008e4f20e7
Inject blocks.css styles as editor styles as well
This is an attempt to fix https://github.com/Automattic/wp-calypso/issues/54990. 

Please note that we added the file as-is, without much consideration to the rest of CSS and the clashes that might occur. 

This PR is intended to show a quick way to fix the issue.
2021-08-03 17:05:47 +02:00

View file

@ -299,6 +299,7 @@ add_action( 'wp_enqueue_scripts', 'rebalance_scripts' );
*/
function rebalance_editor_styles() {
wp_enqueue_style( 'rebalance-editor-block-style', get_template_directory_uri() . '/editor-blocks.css' );
wp_enqueue_style( 'rebalance-editor-block-additional-style', get_template_directory_uri() . '/blocks.css', 8 );
wp_enqueue_style( 'rebalance-fonts', rebalance_fonts_url(), array(), null );
}
add_action( 'enqueue_block_editor_assets', 'rebalance_editor_styles' );