Skip to content

Commit 9699d6e

Browse files
minor #27886 [Form] Removed .form-control-label class. (vudaltsov)
This PR was squashed before being merged into the 3.4 branch (closes #27886). Discussion ---------- [Form] Removed .form-control-label class. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | There is no such a class neither in [bootstrap 4.0](https://getbootstrap.com/docs/4.0/components/forms/#form-controls) nor in [bootstrap 4.1](https://getbootstrap.com/docs/4.1/components/forms/#form-controls). Commits ------- cb3e712698 [Form] Removed .form-control-label class.
2 parents 2f57a15 + ef55c70 commit 9699d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
{%- set element = 'legend' -%}
188188
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' col-form-label')|trim}) -%}
189189
{%- else -%}
190-
{%- set label_attr = label_attr|merge({for: id, class: (label_attr.class|default('') ~ ' form-control-label')|trim}) -%}
190+
{%- set label_attr = label_attr|merge({for: id}) -%}
191191
{%- endif -%}
192192
{% if required -%}
193193
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}

0 commit comments

Comments
 (0)