Skip to content

Commit d89fcaa

Browse files
update fixture and add ref for conditional setting
1 parent 86534e9 commit d89fcaa

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

schemas/theme/setting.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,10 @@
11261126
},
11271127

11281128
"paragraph": {
1129-
"allOf": [{ "$ref": "#/definitions/sidebarStandardSettings" }],
1129+
"allOf": [
1130+
{ "$ref": "#/definitions/sidebarStandardSettings" },
1131+
{ "$ref": "#/definitions/conditionalSetting" }
1132+
],
11301133
"properties": {
11311134
"type": {
11321135
"const": "paragraph",

tests/fixtures/section-schema-conditional-settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"visible_if": "{{ section.settings.show_advanced }}",
88
"info": "Configure advanced options below"
99
},
10+
{
11+
"type": "paragraph",
12+
"content": "This paragraph provides additional context and instructions for the advanced settings section.",
13+
"visible_if": "{{ section.settings.show_advanced }}"
14+
},
1015
{
1116
"type": "checkbox",
1217
"id": "enable_features",
@@ -137,4 +142,4 @@
137142
"visible_if": "{{ section.settings.media_type == 'video' }}"
138143
}
139144
]
140-
}
145+
}

0 commit comments

Comments
 (0)