Problem/Motivation
When adding a Media block to the page, there is the option to set alignment from the context menu. The block attributes, including align, are correctly saved within the commented area of the block. However, after saving the page, the element class attribute is not updated with the appropriate class (alignleft, alignright, etc). As a result, the rendered page does not have the correct formatting. The File block is not affected by this bug and works correctly.
https://stm60774bebbabff-xfjiuusjpxajrggc0nnoymykahhysnjc.tugboat.qa/media
Steps to reproduce
1. Enable gutenberg and media modules
2. Apply gutenberg experience to Basic Page
3. Add new Media block
4. Align inserted block to left or right
5. Save or preview page
6. Media block will not be aligned when rendered
Proposed resolution
Update classnames for media block element to contain alignright, alignleft classes when editing and saving the page
Comments
Comment #2
szeidlerThanks for the report.
As far as I can see that has been fixed in the related issue at #3152526: Support wp-block-drupalmedia-drupal-media-entity aligment