Skip to content

Commit bfe697b

Browse files
committed
bug #34811 [TwigBridge] Update bootstrap_4_layout.html.twig missing switch-custom label (sabruss)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #34811). Discussion ---------- [TwigBridge] Update bootstrap_4_layout.html.twig missing switch-custom label | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | License | MIT Missing .custom-control-label for bootstrap custom-switch when using .switch-custom class in label_attr Commits ------- 9347b2e [TwigBridge] Update bootstrap_4_layout.html.twig
2 parents c3b5ec5 + 9347b2e commit bfe697b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
{% block checkbox_radio_label -%}
243243
{#- Do not display the label if widget is not defined in order to prevent double label rendering -#}
244244
{%- 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) %}
246246
{% 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) %}
247247
{%- if is_parent_custom or is_custom -%}
248248
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' custom-control-label')|trim}) -%}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy