10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9a264 commit 7324eb8Copy full SHA for 7324eb8
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
@@ -261,6 +261,10 @@
261
{%- if required -%}
262
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
263
{%- endif -%}
264
+ {%- if parent_label_class is defined -%}
265
+ {% set embed_label_classes = parent_label_class|split(' ')|filter(class => class in ['checkbox-inline', 'radio-inline']) %}
266
+ {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ embed_label_classes|join(' '))|trim}) -%}
267
+ {% endif %}
268
269
{{ widget|raw }}
270
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
0 commit comments