-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment class not used in Editor #18644
Comments
Hi @ssecweb, this behavior seems to not just happen on Pullquote. Blocks like image and button also don't contain the alignment classes on the editor. I agree that this difference between editor and frontend makes things harder to style. |
I've closed #19331, which also mentions that classnames for alignment aren't applied in the editor, cc @strarsis who wrote the following: Describe the bug To reproduce
Expected behavior |
In #20650 we're trying to rethink alignments and hopefully bring consistency across blocks in the editor and the frontend. |
This is severely irritating for providing a good editor experience. This needs to be re-opened, and these classes need to be applied. |
When changing the alignment of a Pullquote Block in the Editor, neither the WordPress
alignright
oralignleft
class are added. If a custom Block Style is being used that customizes the align left/right state of the Pullquote Block, that customization is only seen when viewing the Post/Page, not when editing it.To reproduce:
alignright
class applied to the<figure>
element for the Pullquote Block.Expected behavior
I expect the Pullquote Block in the Editor to use the same custom Block Style rules as when the Post or Page is viewed. I expect the
alignright
oralignleft
class to be added to<figure>
, as is done when the Post/Page is viewed.Additional context
I am using the latest version of WordPress, version 5.3 with Gutenberg.
The text was updated successfully, but these errors were encountered: