-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Block] SocialAffects the Social Block - used to display Social Media accountsAffects the Social Block - used to display Social Media accounts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
If the block gap attribute is set using the Block spacing setting, but a justification setting is not selected, then the block gap attribute is lost when the post is reloaded in the editor:
Step-by-step reproduction instructions
- Add a Social block
- Add 2 or 3 Social links child blocks
- Set the block spacing to a > 0 value
- Save the post and reload - note that the block spacing value is lost
- Repeat the above but this time also set a justification option before saving and reloading and note that this time the block gap value persists
Screenshots, screen recording, code snippet
Gap attribute wiped if no justification set:

If justification is set then the block gap attribute is retained as expected:
Environment info
WP 5.8 and Gutenberg 12.2.0-rc.1
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] SocialAffects the Social Block - used to display Social Media accountsAffects the Social Block - used to display Social Media accounts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
