From e15dccd7bd14614103bfc6e8c0c4916750cf0821 Mon Sep 17 00:00:00 2001 From: Alex Nathanail Date: Sat, 19 Apr 2025 12:20:37 +0100 Subject: [PATCH 1/6] Make legend font-size the same as label font-size --- crispy_bootstrap5/templates/bootstrap5/field.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crispy_bootstrap5/templates/bootstrap5/field.html b/crispy_bootstrap5/templates/bootstrap5/field.html index ff7a26b..0251b2a 100644 --- a/crispy_bootstrap5/templates/bootstrap5/field.html +++ b/crispy_bootstrap5/templates/bootstrap5/field.html @@ -13,7 +13,7 @@ {% if field.label and not field|is_checkbox and form_show_labels %} {% if field.use_fieldset %}{% endif %} <{% if field.use_fieldset %}legend{% else %}label{% endif %} - {% if field.id_for_label %}for="{{ field.id_for_label }}"{% endif %} class="{% if 'form-horizontal' in form_class %}col-form-label pt-0{% else %}form-label{% endif %}{% if label_class %} {{ label_class }}{% endif %}{% if field.field.required %} requiredField{% endif %}"> + {% if field.id_for_label %}for="{{ field.id_for_label }}"{% endif %} class="{% if 'form-horizontal' in form_class %}col-form-label pt-0{% else %}form-label{% endif %}{% if label_class %} {{ label_class }}{% endif %}{% if field.field.required %} requiredField{% endif %}{% if field.use_fieldset %} fs-6{% endif %}"> {{ field.label }}{% if field.field.required %}*{% endif %} {% endif %} From 578ca3e611f98528630f426fe952bc17fe5c8de9 Mon Sep 17 00:00:00 2001 From: Alex Nathanail Date: Sat, 19 Apr 2025 12:26:49 +0100 Subject: [PATCH 2/6] Fix font size for InlineRadios --- .../templates/bootstrap5/layout/radioselect_inline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crispy_bootstrap5/templates/bootstrap5/layout/radioselect_inline.html b/crispy_bootstrap5/templates/bootstrap5/layout/radioselect_inline.html index 263d520..94d59c0 100644 --- a/crispy_bootstrap5/templates/bootstrap5/layout/radioselect_inline.html +++ b/crispy_bootstrap5/templates/bootstrap5/layout/radioselect_inline.html @@ -5,7 +5,7 @@ {% if field.label %} - + {{ field.label }}{% if field.field.required %}*{% endif %} {% endif %} From 2768bc2a64f7a35ddf35ed1c2a024910fcfe03f6 Mon Sep 17 00:00:00 2001 From: Alex Nathanail Date: Sat, 19 Apr 2025 12:28:29 +0100 Subject: [PATCH 3/6] Fix font size for InlineCheckboxes --- .../bootstrap5/layout/checkboxselectmultiple_inline.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crispy_bootstrap5/templates/bootstrap5/layout/checkboxselectmultiple_inline.html b/crispy_bootstrap5/templates/bootstrap5/layout/checkboxselectmultiple_inline.html index 263d520..94d59c0 100644 --- a/crispy_bootstrap5/templates/bootstrap5/layout/checkboxselectmultiple_inline.html +++ b/crispy_bootstrap5/templates/bootstrap5/layout/checkboxselectmultiple_inline.html @@ -5,7 +5,7 @@ {% if field.label %} - + {{ field.label }}{% if field.field.required %}*{% endif %} {% endif %} From 9f0ed01389997361b30bd4cbe74e4b05b294c1bb Mon Sep 17 00:00:00 2001 From: Alex Nathanail <7809723+adnathanail@users.noreply.github.com> Date: Fri, 9 May 2025 15:20:28 +0000 Subject: [PATCH 4/6] Fix failing tests --- tests/results/checkboxes.html | 2 +- tests/results/inline_checkboxes.html | 2 +- tests/results/inline_checkboxes_failing.html | 2 +- tests/results/inline_checkboxes_failing_lt50.html | 2 +- tests/results/inline_checkboxes_failing_lt52.html | 2 +- tests/results/inline_radios.html | 2 +- tests/results/inline_radios_failing.html | 2 +- tests/results/inline_radios_failing_lt50.html | 2 +- tests/results/inline_radios_failing_lt52.html | 2 +- tests/results/radio.html | 2 +- tests/results/test_grouped_checkboxes.html | 2 +- tests/results/test_grouped_checkboxes_failing.html | 2 +- tests/results/test_grouped_checkboxes_failing_lt50.html | 2 +- tests/results/test_grouped_checkboxes_failing_lt52.html | 2 +- tests/results/test_grouped_checkboxes_lt52.html | 2 +- tests/results/test_grouped_radios.html | 2 +- tests/results/test_grouped_radios_failing.html | 2 +- tests/results/test_grouped_radios_failing_lt50.html | 2 +- tests/results/test_grouped_radios_failing_lt52.html | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/results/checkboxes.html b/tests/results/checkboxes.html index addfa5b..895d77f 100644 --- a/tests/results/checkboxes.html +++ b/tests/results/checkboxes.html @@ -1,7 +1,7 @@
- Checkboxes* + Checkboxes*
- Checkboxes* + Checkboxes*
diff --git a/tests/results/inline_checkboxes_failing.html b/tests/results/inline_checkboxes_failing.html index cf2a812..58f3520 100644 --- a/tests/results/inline_checkboxes_failing.html +++ b/tests/results/inline_checkboxes_failing.html @@ -1,7 +1,7 @@
- Checkboxes* + Checkboxes*
diff --git a/tests/results/inline_checkboxes_failing_lt50.html b/tests/results/inline_checkboxes_failing_lt50.html index 65adc38..e2da85a 100644 --- a/tests/results/inline_checkboxes_failing_lt50.html +++ b/tests/results/inline_checkboxes_failing_lt50.html @@ -1,7 +1,7 @@
- Checkboxes* + Checkboxes*
diff --git a/tests/results/inline_checkboxes_failing_lt52.html b/tests/results/inline_checkboxes_failing_lt52.html index 8f4ab75..ab3ed20 100644 --- a/tests/results/inline_checkboxes_failing_lt52.html +++ b/tests/results/inline_checkboxes_failing_lt52.html @@ -1,7 +1,7 @@
- Checkboxes* + Checkboxes*
diff --git a/tests/results/inline_radios.html b/tests/results/inline_radios.html index 8184940..7ab18d4 100644 --- a/tests/results/inline_radios.html +++ b/tests/results/inline_radios.html @@ -1,7 +1,7 @@
- Inline radios* + Inline radios*
diff --git a/tests/results/inline_radios_failing.html b/tests/results/inline_radios_failing.html index a7eb405..8e77b29 100644 --- a/tests/results/inline_radios_failing.html +++ b/tests/results/inline_radios_failing.html @@ -1,7 +1,7 @@
- Inline radios* + Inline radios*
diff --git a/tests/results/inline_radios_failing_lt50.html b/tests/results/inline_radios_failing_lt50.html index 7222316..7a7190c 100644 --- a/tests/results/inline_radios_failing_lt50.html +++ b/tests/results/inline_radios_failing_lt50.html @@ -1,7 +1,7 @@
- Inline radios* + Inline radios*
diff --git a/tests/results/inline_radios_failing_lt52.html b/tests/results/inline_radios_failing_lt52.html index ec94689..3c1492c 100644 --- a/tests/results/inline_radios_failing_lt52.html +++ b/tests/results/inline_radios_failing_lt52.html @@ -1,7 +1,7 @@
- Inline radios* + Inline radios*
diff --git a/tests/results/radio.html b/tests/results/radio.html index 70fe3b5..38fe6eb 100644 --- a/tests/results/radio.html +++ b/tests/results/radio.html @@ -1,7 +1,7 @@
- Radio* + Radio*
- Checkbox select multiple* + Checkbox select multiple*
Audio