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
Pipeline #13565 passed with stage
in 23 seconds
CHANGELOG CHANGELOG
========= =========
5.0.1
-----
- [FIX] FormControlGroup : prise en compte de la classe CSS des labels de checkboxes.
5.0.0 5.0.0
----- -----
- Migration vers Bootstrap 5 (front-end). - Migration vers Bootstrap 5 (front-end).
......
...@@ -296,10 +296,11 @@ class FormControlGroup extends AbstractHelper ...@@ -296,10 +296,11 @@ class FormControlGroup extends AbstractHelper
$id = $element->getAttribute('id'); $id = $element->getAttribute('id');
$label = $element->getLabel(); $label = $element->getLabel();
$title = $element->getLabelAttributes()['title'] ?? $element->getAttributes()['title'] ?? null; $title = $element->getLabelAttributes()['title'] ?? $element->getAttributes()['title'] ?? null;
$class = $element->getLabelAttributes()['class'] ?? $element->getAttributes()['class'] ?? null;
$html = <<<EOS $html = <<<EOS
<div class="form-check"> <div class="form-check">
$html $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> </div>
EOS; EOS;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment