Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 57abeb8

Browse filesBrowse files
bug #47833 [TwigBridge] Remove empty spaces between choices when using checkbox-inline or checkbox-switch (simondaigre)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge] Remove empty spaces between choices when using checkbox-inline or checkbox-switch | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> This PR fixes empty spaces between choices when using checkbox-inline or checkbox-switch. Commits ------- 00fb70d Update bootstrap_5_layout.html.twig
2 parents a7490fc + 00fb70d commit 57abeb8
Copy full SHA for 57abeb8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_5_layout.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_5_layout.html.twig
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@
213213
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
214214
{%- set row_class = 'form-check' -%}
215215
{%- if 'checkbox-inline' in parent_label_class %}
216-
{% set row_class = row_class ~ ' form-check-inline' %}
216+
{%- set row_class = row_class ~ ' form-check-inline' -%}
217217
{% endif -%}
218218
{%- if 'checkbox-switch' in parent_label_class %}
219-
{% set row_class = row_class ~ ' form-switch' %}
219+
{%- set row_class = row_class ~ ' form-switch' -%}
220220
{% endif -%}
221221
<div class="{{ row_class }}">
222222
{{- form_label(form, null, { widget: parent() }) -}}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.