Skip to content

Conversation

@arcangelini
Copy link
Member

Summary

Since Gutenberg is being loaded on the front end there are many collisions with styling from themes. This is not limited to the editor getting styled by the theme, the use of wp_styles()->done = array( 'wp-reset-editor-styles' ); is resetting some of the styles on the theme.

To avoid this I would like to make loading the styles optional to allow us to load the necessary core stylesheets nested within our plugins styles.

		@include meta.load-css('@wordpress/components/build-style/style-rtl.css');
		@include meta.load-css('@wordpress/format-library/build-style/style-rtl.css');
		@include meta.load-css('@wordpress/edit-post/build-style/style-rtl.css');

This is tested and working in the following https://github.com/Automattic/verbum/pull/13.

@arcangelini arcangelini self-assigned this Nov 11, 2023
Copy link
Member

@alshakero alshakero left a comment

Choose a reason for hiding this comment

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

Pretty neat!

Copy link
Member

@alshakero alshakero left a comment

Choose a reason for hiding this comment

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

Beautiful. Looks great.

@arcangelini arcangelini merged commit 5417854 into trunk Nov 14, 2023
@arcangelini arcangelini deleted the add/styling-opt-out branch November 14, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants