Skip to content

Commit 8b3b108

Browse files
bug #26870 Add d-block to bootstrap 4 alerts (Normunds)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #26870). Discussion ---------- Add d-block to bootstrap 4 alerts | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #26869 | License | MIT | Doc PR | N/A Commits ------- 40bd8bd Add d-block to bootstrap 4 alerts
2 parents 36a48d9 + f372659 commit 8b3b108

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
@@ -267,7 +267,7 @@
267267

268268
{% block form_errors -%}
269269
{%- if errors|length > 0 -%}
270-
<span class="{% if form is not rootform %}invalid-feedback d-block{% else %}alert alert-danger{% endif %}">
270+
<span class="{% if form is not rootform %}invalid-feedback{% else %}alert alert-danger{% endif %} d-block">
271271
{%- for error in errors -%}
272272
<span class="mb-0 d-block">
273273
<span class="initialism form-error-icon badge badge-danger">{{ 'Error'|trans({}, 'validators') }}</span> <span class="form-error-message">{{ error.message }}</span>

0 commit comments

Comments
 (0)