Skip to content

Social Icons 'block spacing' resets after saving #38549

@kosvrouvas

Description

@kosvrouvas

Description

(FYI I also posted this here but as @mauriac mentioned it seems Gutenberg related)

When editing a social icons block, and you set some pixels to the block spacing, hitting save works as expected. Leaving the editing area and entering again, the block spacing field resets, and if you make other changes to the page and hit save. The icons reset their distance.

This was tested on both twentytwentytwo, and blockbase themes, on 3 different installs, locally and on a server.

Step-by-step reproduction instructions

  1. Ad a social icon block
  2. Set a spacing
  3. Hit save and leave the editor
  4. Enter the editor again, the spacing should be reseted
  5. Change something else in the page and hit save.
  6. Social blocks spacing is removed on the frontend.

Screenshots, screen recording, code snippet

https://www.youtube.com/watch?v=CBRiVSCuO9U

Environment info

WordPress 5.9, Full site editing, twenty-twenty two theme and blockbase. Local and server environment.

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

Metadata

Metadata

Assignees

Labels

[Block] SocialAffects the Social Block - used to display Social Media accounts[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions