Social Icons: Preset colors do not stay in sync with Global Styles presets #35480
Comments
kjellr
changed the title
Social Icons: Custom color does not stay in sync with Global Styles presets
Social Icons: Preset colors do not stay in sync with Global Styles presets
Oct 8, 2021
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kjellr commentedOct 8, 2021
When you assign a preset color to the Social Links block, it records the preset's hex color in the markup like so:
If someone were to go and modify the value of that
foreground
preset via Global Styles, the social links block does not update to the new color value. The original hex color defined in the block markup is still used.GIF:
Note that I'm changing the color of "foreground" via Global Styles, but that update is not reflected in the Social Links block color:
Gutenberg version 11.7.0-rc.1
Noticed during the development of Twenty Twenty-Two: WordPress/twentytwentytwo#74 (comment)
The text was updated successfully, but these errors were encountered: