File tree 1 file changed +1
-1
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 242
242
{% block checkbox_radio_label -%}
243
243
{#- Do not display the label if widget is not defined in order to prevent double label rendering -#}
244
244
{%- if widget is defined -%}
245
- {% set is_parent_custom = parent_label_class is defined and (' checkbox-custom' in parent_label_class or ' radio-custom' in parent_label_class ) %}
245
+ {% set is_parent_custom = parent_label_class is defined and (' checkbox-custom' in parent_label_class or ' radio-custom' in parent_label_class or ' switch-custom ' in parent_label_class ) %}
246
246
{% set is_custom = label_attr .class is defined and (' checkbox-custom' in label_attr .class or ' radio-custom' in label_attr .class or ' switch-custom' in label_attr .class ) %}
247
247
{%- if is_parent_custom or is_custom -%}
248
248
{%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' custom-control-label' )|trim }) -%}
You can’t perform that action at this time.
0 commit comments