You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pulled out of #388. When styles are applied using the custom wp-container-* classes, these are not applied to the preview content. This is most obvious if you try to add & center a button:
Editor:
Frontend preview:
The root of the issue is that the inline style tags are added on a hook, either wp_footer or wp_enqueue_scripts (source), rather than output directly inline, so the API response does not contain the styles (see WordPress/gutenberg#35376 (comment), WordPress/gutenberg#38167).
The text was updated successfully, but these errors were encountered:
Pulled out of #388. When styles are applied using the custom
wp-container-*
classes, these are not applied to the preview content. This is most obvious if you try to add & center a button:Editor:
Frontend preview:
The root of the issue is that the inline
style
tags are added on a hook, eitherwp_footer
orwp_enqueue_scripts
(source), rather than output directly inline, so the API response does not contain the styles (see WordPress/gutenberg#35376 (comment), WordPress/gutenberg#38167).The text was updated successfully, but these errors were encountered: