WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Classic block: Image alignment is not preserved #66356

Open Robertght opened 3 weeks ago

Robertght commented 3 weeks ago

Description

This report originated from here: https://github.com/Automattic/wp-calypso/issues/86379

Step-by-step reproduction instructions

Add an image Add some text Align the image to the right or center Save changes and preview in the new tab

Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/5b6b3539-2dfc-424b-b2d4-4edc687c19b8

Environment info

Gutenberg 19.4.0 Twentytwenty-Four WordPress 6.6.2

Please confirm that you have searched existing issues in the repo.

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Please confirm which theme type you used for testing.

kspilarski commented 1 day ago

Hi @Robertght thanks for reporting!

On my site version 6.7, Gutenberg 19.6.2, and Twenty Twenty-Four theme, I tested the Classic block with images aligned to the right or center and added some texts.

The images on my site do not overlap like the images in your screen recording, but I can replicate that the image alignments are not preserved. On my test site, changing the image alignments are not reflected in the editor and the published page.

Image

Robertght commented 1 day ago

Hey @kspilarski!

Sorry about that demo. It looks like I grabbed the wrong demo bug. I updated the main report with it.

kspilarski commented 1 day ago

Hey @Robertght no worries, and thanks for updating to the correct demo bug! I can confirm that we both get the same results!