a11y: add role="status" to "an email has been sent" messages (#75680) #53

Merged
fpeters merged 1 commits from wip/75680-email-sent-role-status into main 2023-05-12 09:18:00 +02:00
2 changed files with 12 additions and 12 deletions

View File

@ -9,17 +9,17 @@
{% if 'robot' in request.GET %}
<p><strong>{% trans "Your password reset request has been refused." %}</strong>{% trans "Indeed your browser checked a hidden anti-robot checkbox on the registration form. A browser extension may produce this behaviour, in this case disable such extensions and try again." %}</p>
{% else %}
<p>
<div role="status"><p>
<strong>
{% blocktrans trimmed with email=request.session.reset_email %}
An email has been sent to {{ email }}.
{% endblocktrans %}
</strong></p>
<p><strong>
{% blocktrans trimmed %}
Follow the instructions in this email in order to choose a new password.
{% endblocktrans %}
</strong></p>
<p><strong>
{% blocktrans trimmed %}
Follow the instructions in this email in order to choose a new password.
{% endblocktrans %}
</strong></p></div>
{% block advice %}
<p>
{% blocktrans trimmed %}

View File

@ -10,16 +10,16 @@
<p><strong>{% trans "Your registration request has been refused." %}</strong>{% trans "Indeed your browser checked a hidden anti-robot checkbox on the registration form. A browser extension may produce this behaviour, in this case disable such extensions and try again." %}</p>
{% else %}
{% block instructions %}
<p><strong>
<div role="status"><p><strong>
{% blocktrans trimmed with email=request.session.registered_email %}
An email was sent to {{ email }}.
{% endblocktrans %}
</strong></p>
<p><strong>
{% blocktrans trimmed %}
Follow the instructions in that email to continue your registration.
{% endblocktrans %}
</strong></p>
<p><strong>
{% blocktrans trimmed %}
Follow the instructions in that email to continue your registration.
{% endblocktrans %}
</strong></p></div>
{% endblock %}
{% block advice %}
<p>