Short description of issue
Palette-based color defaults work when adding blocks to new sections but after saving theme editor newly added blocks show “Select” instead of the expected palette color. Checking JSON it appears Shopify saves these settings as empty strings.
Reproduction steps
Create a section containing a block with palette-based color defaults for example:
{
“type”: “color”,
“id”: “color_bg”,
“label”: “Background”,
“default”: “{{ settings.color_palette.background }}”
}
Add the section in the theme editor, then add a block. Palette colors are correctly selected.
Save the theme editor window.
Add another block of the same type.
Now that the color picker now displays “Select” instead of the palette color.
Save again and inspect the template JSON. The setting is stored as “color_bg”: “” rather than the palette reference.
Additional info
I’ve reproduced this consistently across multiple sections and different templates.
The issue only occurs with palette-based defaults. Fixed hex defaults such as “#123123” work correctly in the same blocks.
What type of topic is this
Bug report
