8000 bug #42323 [TwigBridge] do not merge label classes into expanded choi… · symfony/symfony@eee7b80 · GitHub
[go: up one dir, main page]

Skip to content

Commit eee7b80

Browse files
committed
bug #42323 [TwigBridge] do not merge label classes into expanded choice labels (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [TwigBridge] do not merge label classes into expanded choice labels | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #40005 | License | MIT | Doc PR | Commits ------- 9400311 do not merge label classes into expanded choice labels
2 parents b643481 + 9400311 commit eee7b80

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@
8585
{%- if required -%}
8686
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
8787
{%- endif -%}
88-
{%- if parent_label_class is defined -%}
89-
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) -%}
90-
{%- endif -%}
9188
{%- if label is not same as(false) and label is empty -%}
9289
{%- if label_format is not empty -%}
9390
{%- set label = label_format|replace({

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@
261261
{%- if required -%}
262262
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) -%}
263263
{%- endif -%}
264-
{%- if parent_label_class is defined -%}
265-
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|replace({'checkbox-inline': '', 'radio-inline': '', 'checkbox-custom': '', 'radio-custom': ''})|trim}) -%}
266-
{%- endif -%}
267264
{%- if label is not same as(false) and label is empty -%}
268265
{%- if label_format is not empty -%}
269266
{%- set label = label_format|replace({

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@
253253
{% if errors|length > 0 -%}
254254
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' error')|trim}) %}
255255
{% endif %}
256-
{% if parent_label_class is defined %}
257-
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ parent_label_class)|trim}) %}
258-
{% endif %}
259256
{% if label is empty %}
260257
{%- if label_format is not empty -%}
261258
{% set label = label_format|replace({

0 commit comments

Comments
 (0)
0