a11y: add alert role to form error (#74051)
gitea/gadjo/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-06-18 11:43:29 +02:00
parent 1fe855154d
commit 2aad9ac21a
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{% load i18n %}
{% if form.errors %}
<div class="errornotice" tabindex="-1" autofocus>
<div class="errornotice" tabindex="-1" autofocus role="alert">
<p>{% trans "There were errors processing your form." %}</p>
{% for error in form.non_field_errors %}
<p>{{ error }}</p>