Image Block: Image with aligncenter
class no longer centered when used in a nested block
#39291
Labels
[Block] Image
Affects the Image Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Description
When you add an image block into a group or column and set the alignment to center the image is no longer centered. It's only centered if the block is added on the top-level.
This was likely introduced by #38613 and/or #38657 while the top-level alignment is working due to changes in #38947.
This style is now no longer applied:
gutenberg/packages/block-library/src/image/style.scss
Lines 59 to 62 in e863928
Only this, which has no effect:
gutenberg/packages/block-library/src/image/style.scss
Lines 15 to 17 in e863928
@youknowriad, @jasmussen What would be the correct fix here?
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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: