-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Featured Image Block: Center alignment does not work #37936
Comments
Hi @jordesign! Thanks for reporting this. I'm able to reproduce the steps. |
Noting that this is still an issue with WordPress 6.0.1 and Gutenberg 13.6. This was repeated during the fifteenth call for testing for the FSE Outreach Program when @paaljoachim was trying to left align a featured image. After dimensions are changed, it seems as though aligning the block doesn't work at all. I'm not sure how/if this might overlap with general block support tracking issues: #41113 |
@draganescu and @ntsekouras would this be something for you to take a closer look at? |
(edited) Tested this:
|
Set the margin of the featured image in theme.json. "blocks": |
I think this may have been fixed in trunk. |
Noting that this is still an issue in WordPress 6.1.1 and Gutenberg 14.7.3 |
This seems to be true for multiple blocks inside a query loop / post template block that has an alignment setting and not a text alignment. I quickly tested the following blocks in 6.2 RC and Twenty Twenty Three: Cannot be right aligned or centered: Except for the two image blocks, I can't think of any reasons to add these blocks to the query, but they are allowed and they should work. Can be right aligned or centered: |
I can see that the file block specifically adds the following CSS:
|
Description
When Center alignment for the Featured Image block is selected - it does not change the alingment.
I expected selecting center alignment to center the image - but it remained left aligned.
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: