[Bug]: Social Link block within patterns are left aligned on preview, but centered on live site #59084
Labels
[Block] Social Icons
[Pri] Normal
Schedule for the next available opportuinity.
Triaged
To be used when issues have been triaged.
[Type] Bug
When a feature is broken and / or not performing as intended
Quick summary
WPCOM block patterns that are using the
Social Links
block are displaying that specific block contents on the left inside the preview, while correctly displaying them centered on the live site.This only happens on patterns that are not surrounded by a
Group
block.Steps to reproduce
Link in Bio
, or one that has centered social links;Verify that the social icons are left-aligned in the editor. Verify that the icons are centered on the live site.
What you expected to happen
Social icons to be centered in the editor.
What actually happened
Social icons are to the left inside the editor.
Context
No response
Browser
Google Chrome/Chromium
Simple/Atomic
Simple
Other notes
No response
Reproducibility
Consistent
Severity
All
Available workarounds?
Yes, easy to implement
Workaround details
It looks like we're using older block attributes inside the patterns:
And this is the current structure when you add a
Social Links
block to the page:Doing a quick search in the posts on the patterns blog, it looks like there are
18
instances ofwp:social-links \{.*"align
that need to be replaced.What reinforces my thesis about the old signature is that we're not even recognizing the settings inside the block editor. It's just straight set to the left, including layout settings:
The text was updated successfully, but these errors were encountered: