Commit c40d83f9 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] FormControlGroup : prise en compte de la classe CSS des labels de checkboxes

parent 97c2bf10
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
CHANGELOG
=========

5.0.1
-----
- [FIX] FormControlGroup : prise en compte de la classe CSS des labels de checkboxes. 

5.0.0
-----
- Migration vers Bootstrap 5 (front-end).
+2 −1
Original line number Diff line number Diff line
@@ -296,10 +296,11 @@ class FormControlGroup extends AbstractHelper
            $id = $element->getAttribute('id');
            $label = $element->getLabel();
            $title = $element->getLabelAttributes()['title'] ?? $element->getAttributes()['title'] ?? null;
            $class = $element->getLabelAttributes()['class'] ?? $element->getAttributes()['class'] ?? null;
            $html = <<<EOS
<div class="form-check">
    $html
    <label class="form-check-label" for="$id" title="$title">$label</label>
    <label class="form-check-label $class" for="$id" title="$title">$label</label>
</div>
EOS;
        }