From 39f550b1c58fafea76ef403ec202b8ae81a88842 Mon Sep 17 00:00:00 2001 From: laurenhu Date: Wed, 6 Mar 2024 14:27:19 -0500 Subject: [PATCH] refactor: rename 'option' to 'control' in section controls --- theme/components/sections/header.html.twig | 6 +++--- theme/components/sections/home/banner.html.twig | 8 ++++---- .../sections/home/featured-categories.html.twig | 6 +++--- theme/components/sections/home/featured-items.html.twig | 6 +++--- theme/components/sections/home/text.html.twig | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/theme/components/sections/header.html.twig b/theme/components/sections/header.html.twig index da489b3..fd1c7ee 100644 --- a/theme/components/sections/header.html.twig +++ b/theme/components/sections/header.html.twig @@ -321,21 +321,21 @@ "name": "Header", "controls": [ { - "option": "toggle", + "control": "toggle", "label": "Show announcement bar", "value": { "$ref": "#/schema/announcement_bar_show" } }, { - "option": "input", + "control": "input", "label": "Announcement bar", "value": { "$ref": "#/schema/announcement_bar_text" } }, { - "option": "link-chooser", + "control": "link-chooser", "label": "Announcement link", "value": { "$ref": "#/schema/announcement_bar_link" diff --git a/theme/components/sections/home/banner.html.twig b/theme/components/sections/home/banner.html.twig index 03ccf56..6ca4612 100644 --- a/theme/components/sections/home/banner.html.twig +++ b/theme/components/sections/home/banner.html.twig @@ -40,18 +40,18 @@ "name": "Banner", "controls": [ { - "option": "group", + "control": "group", "label": "Banner image", "value": { "controls": [ { - "option": "image-chooser", + "control": "image-chooser", "value": { "$ref": "#/schema/image" } }, { - "option": "input", + "control": "input", "label": "Image description", "placeholder": "Alt text for accessibility", "value": { @@ -62,7 +62,7 @@ } }, { - "option": "input", + "control": "input", "label": "Marquee text", "placeholder": "Scrolling text", "value": { diff --git a/theme/components/sections/home/featured-categories.html.twig b/theme/components/sections/home/featured-categories.html.twig index 480b8f2..e44ec8d 100644 --- a/theme/components/sections/home/featured-categories.html.twig +++ b/theme/components/sections/home/featured-categories.html.twig @@ -28,19 +28,19 @@ "name": "Featured categories", "controls": [ { - "option": "input", + "control": "input", "label": "Heading", "value": { "$ref": "#/schema/heading" } }, { - "option": "group", + "control": "group", "label": "Featured categories", "value": { "controls": [ { - "option": "category-list-chooser", + "control": "category-list-chooser", "value": { "$ref": "#/schema/categories" } diff --git a/theme/components/sections/home/featured-items.html.twig b/theme/components/sections/home/featured-items.html.twig index 8514c8b..04cdbd2 100644 --- a/theme/components/sections/home/featured-items.html.twig +++ b/theme/components/sections/home/featured-items.html.twig @@ -28,19 +28,19 @@ "name": "Featured items", "controls": [ { - "option": "input", + "control": "input", "label": "Heading", "value": { "$ref": "#/schema/heading" } }, { - "option": "group", + "control": "group", "label": "Items", "value": { "controls": [ { - "option": "item-list-chooser", + "control": "item-list-chooser", "value": { "$ref": "#/schema/items" } diff --git a/theme/components/sections/home/text.html.twig b/theme/components/sections/home/text.html.twig index c0652b5..2ccec01 100644 --- a/theme/components/sections/home/text.html.twig +++ b/theme/components/sections/home/text.html.twig @@ -18,14 +18,14 @@ "name": "Text", "controls": [ { - "option": "input", + "control": "input", "label": "Heading", "value": { "$ref": "#/schema/heading" } }, { - "option": "textarea", + "control": "textarea", "label": "Text", "value": { "$ref": "#/schema/text"