Skip to content

Commit 86534e9

Browse files
theme check visible_if on paragraph is valid (#997)
### TL;DR Added `visible_if` property to paragraph type settings in theme schema. ### What changed? Added the `visible_if` property to the paragraph type settings in the theme schema JSON file. This allows paragraph elements to be conditionally displayed based on other setting values. ### How to test? 1. Create a theme setting with a paragraph type that includes a `visible_if` condition 2. Verify that the paragraph is only displayed when the condition is met 3. Test with different condition values to ensure proper visibility toggling ### Why make this change? Conditionally show or hide paragraph elements in the theme settings and validation accurately reflects for paragraph
2 parents b75ac8f + 8c9fcb3 commit 86534e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schemas/theme/setting.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,8 @@
11331133
"description": "A setting of type paragraph outputs a text element to help you better describe your input settings.",
11341134
"markdownDescription": "A setting of type `paragraph` outputs a text element to help you better describe your input settings.\n\n---\n\n[Shopify reference](https://shopify.dev/docs/themes/architecture/settings/sidebar-settings#paragraph)"
11351135
},
1136-
"content": true
1136+
"content": true,
1137+
"visible_if": true
11371138
},
11381139
"additionalProperties": false
11391140
},

0 commit comments

Comments
 (0)