You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: schemas/theme/setting.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1133,7 +1133,8 @@
1133
1133
"description": "A setting of type paragraph outputs a text element to help you better describe your input settings.",
1134
1134
"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)"
0 commit comments