From 7ee778b773708daa9c3c873e744d8cf830abbbaf Mon Sep 17 00:00:00 2001 From: Henry Cooksley Date: Mon, 6 Jan 2025 16:42:36 +0000 Subject: [PATCH 1/2] Change span to label so for attribute works --- lite_forms/templates/components.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lite_forms/templates/components.html b/lite_forms/templates/components.html index 7b1a77d23b..40883d1779 100644 --- a/lite_forms/templates/components.html +++ b/lite_forms/templates/components.html @@ -18,25 +18,25 @@ {% endif %} {% if question.description %} - + + {% endif %} {% if question.accessible_description %} - + + {% endif %} {% if errors %} {% if errors|key_value:question.name and question.input_type != "hidden" %} - + + {% endif %} {% endif %} From 46dfb12f91556e3840cb22e6b00701cad7f6aa58 Mon Sep 17 00:00:00 2001 From: Henry Cooksley Date: Tue, 14 Jan 2025 15:11:47 +0000 Subject: [PATCH 2/2] Fix error message html to match design system example --- lite_forms/templates/components.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lite_forms/templates/components.html b/lite_forms/templates/components.html index 40883d1779..18025e58d5 100644 --- a/lite_forms/templates/components.html +++ b/lite_forms/templates/components.html @@ -31,12 +31,12 @@ {% if errors %} {% if errors|key_value:question.name and question.input_type != "hidden" %} - + {% endif %} {% endif %}