Skip to content

Commit 5757dfa

Browse files
Nyholmnicolas-grekas
authored andcommitted
[Form][WCAG] Errors sign for people that do not see colors
1 parent 74b93eb commit 5757dfa

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
@@ -244,7 +244,7 @@
244244
<div class="{% if form is not rootform %}invalid-feedback d-block{% else %}alert alert-danger{% endif %}">
245245
<ul class="list-unstyled mb-0">
246246
{%- for error in errors -%}
247-
<li>{{ error.message }}</li>
247+
<li><span class="initialism form-error-icon badge badge-danger">{{ 'Error'|trans({}, 'validators') }}</span> <span class="form-error-message">{{ error.message }}</span></li>
248248
{%- endfor -%}
249249
</ul>
250250
</div>

0 commit comments

Comments
 (0)