File block: Center alignment option does not center block's text in editor #59968
Labels
[Block] File
Affects the File Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Reported by pitamdey on Trac 58923, similar bug previously fixed in #8303
The File block Center alignment does not work in the editor with classic themes unless they have their own styles for centering blocks.
The front-end block styles include
text-align: center
, buteditor.scss
does not include a similar rule such as this:Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
iframe editor, with Twenty Seventeen in WordPress 6.5-RC2:
front end:
Environment info
I also tested once with Gutenberg 17.9.0, using Twenty Seventeen and the iframe editor, to confirm it still happens with the plugin active.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: