Skip to content

Commit 81f9b02

Browse files
authored
refactor: rename 'option' to 'control' in section controls (#57)
1 parent d0a9410 commit 81f9b02

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

theme/components/sections/header.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,21 +321,21 @@
321321
"name": "Header",
322322
"controls": [
323323
{
324-
"option": "toggle",
324+
"control": "toggle",
325325
"label": "Show announcement bar",
326326
"value": {
327327
"$ref": "#/schema/announcement_bar_show"
328328
}
329329
},
330330
{
331-
"option": "input",
331+
"control": "input",
332332
"label": "Announcement bar",
333333
"value": {
334334
"$ref": "#/schema/announcement_bar_text"
335335
}
336336
},
337337
{
338-
"option": "link-chooser",
338+
"control": "link-chooser",
339339
"label": "Announcement link",
340340
"value": {
341341
"$ref": "#/schema/announcement_bar_link"

theme/components/sections/home/banner.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@
4040
"name": "Banner",
4141
"controls": [
4242
{
43-
"option": "group",
43+
"control": "group",
4444
"label": "Banner image",
4545
"value": {
4646
"controls": [
4747
{
48-
"option": "image-chooser",
48+
"control": "image-chooser",
4949
"value": {
5050
"$ref": "#/schema/image"
5151
}
5252
},
5353
{
54-
"option": "input",
54+
"control": "input",
5555
"label": "Image description",
5656
"placeholder": "Alt text for accessibility",
5757
"value": {
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
{
65-
"option": "input",
65+
"control": "input",
6666
"label": "Marquee text",
6767
"placeholder": "Scrolling text",
6868
"value": {

theme/components/sections/home/featured-categories.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"name": "Featured categories",
2929
"controls": [
3030
{
31-
"option": "input",
31+
"control": "input",
3232
"label": "Heading",
3333
"value": {
3434
"$ref": "#/schema/heading"
3535
}
3636
},
3737
{
38-
"option": "group",
38+
"control": "group",
3939
"label": "Featured categories",
4040
"value": {
4141
"controls": [
4242
{
43-
"option": "category-list-chooser",
43+
"control": "category-list-chooser",
4444
"value": {
4545
"$ref": "#/schema/categories"
4646
}

theme/components/sections/home/featured-items.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
"name": "Featured items",
2929
"controls": [
3030
{
31-
"option": "input",
31+
"control": "input",
3232
"label": "Heading",
3333
"value": {
3434
"$ref": "#/schema/heading"
3535
}
3636
},
3737
{
38-
"option": "group",
38+
"control": "group",
3939
"label": "Items",
4040
"value": {
4141
"controls": [
4242
{
43-
"option": "item-list-chooser",
43+
"control": "item-list-chooser",
4444
"value": {
4545
"$ref": "#/schema/items"
4646
}

theme/components/sections/home/text.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"name": "Text",
1919
"controls": [
2020
{
21-
"option": "input",
21+
"control": "input",
2222
"label": "Heading",
2323
"value": {
2424
"$ref": "#/schema/heading"
2525
}
2626
},
2727
{
28-
"option": "textarea",
28+
"control": "textarea",
2929
"label": "Text",
3030
"value": {
3131
"$ref": "#/schema/text"

0 commit comments

Comments
 (0)