From 4754239a60b4b2fa75e8162ea7185e02d3394a15 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 16 Sep 2020 07:12:33 -0600 Subject: [PATCH 1/2] Added some missing class attributes --- CHANGELOG.md | 6 ++++++ templates/forms/fields/checkbox/checkbox.html.twig | 2 +- templates/forms/fields/checkboxes/checkboxes.html.twig | 3 +-- templates/forms/fields/radio/radio.html.twig | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a741a6c..854f8c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.1.2 +## mm/dd/2020 + +1. [](#bugfix) + * Added some missing class attributes + # v4.1.1 ## 09/01/2020 diff --git a/templates/forms/fields/checkbox/checkbox.html.twig b/templates/forms/fields/checkbox/checkbox.html.twig index 79bf8551..0b78064e 100644 --- a/templates/forms/fields/checkbox/checkbox.html.twig +++ b/templates/forms/fields/checkbox/checkbox.html.twig @@ -16,7 +16,7 @@ {# input attribute structures #} {% block input_attributes %} id="{{ id|e }}" - {% if field.classes is defined %}class="{{ field.classes }}" {% endif %} + class="{{ form_field_checkbox_classes }} {{ field.classes }}" {% if field.style is defined %}style="{{ field.style|e }}" {% endif %} {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %} {% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %} diff --git a/templates/forms/fields/checkboxes/checkboxes.html.twig b/templates/forms/fields/checkboxes/checkboxes.html.twig index 73052faa..ba9a6506 100644 --- a/templates/forms/fields/checkboxes/checkboxes.html.twig +++ b/templates/forms/fields/checkboxes/checkboxes.html.twig @@ -26,10 +26,9 @@ id="{{ id|e }}" value="{{ val|e }}" name="{{ (scope ~ field.name)|fieldName ~ '[' ~ name ~ ']' }}" + class="{{ form_field_checkbox_classes }} {{ field.classes }}" {% if checked %}checked="checked"{% endif %} - {% if field.classes is defined %}class="{{ field.classes }}" {% endif %} {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %} - >