Gutenberg: CSS Class issue with Spacer Block

Created on 4 Jun 2020  路  5Comments  路  Source: WordPress/gutenberg

Like all other blocks the CSS class is not applied to the spacer block inside Gutenberg Editor. It is applied on the front-end but not when inside Gutenberg editor.

[Block] Spacer [Type] Bug

Most helpful comment

https://github.com/WordPress/gutenberg/pull/23235 should fix all the issues mentioned here.

All 5 comments

Confirmed.

Editor:
Screen Shot 2020-06-04 at 12 37 41 PM
Frontend:
Screen Shot 2020-06-04 at 12 37 29 PM

Related to this I presume, if I register_block_style for core/spacer (I have responsive spacers of different heights), the style is applied on the frontend, but not in the Editor as the class from the style is not added. Would be great to fix. Thanks!

Related to this I presume, if I register_block_style for core/spacer (I have responsive spacers of different heights), the style is applied on the frontend, but not in the Editor as the class from the style is not added. Would be great to fix. Thanks!

Very likely that this is related.

https://github.com/WordPress/gutenberg/pull/23235 should fix all the issues mentioned here.

@oxyc how did you get on with the fix for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

youknowriad picture youknowriad  路  3Comments

aduth picture aduth  路  3Comments

BE-Webdesign picture BE-Webdesign  路  3Comments

davidsword picture davidsword  路  3Comments

spocke picture spocke  路  3Comments