Add alert role to dynamically added message for a11y

This commit is contained in:
Jonas Schäfer
2021-02-06 11:31:55 +01:00
parent ddf9f89d77
commit 8b66c5a063

View File

@@ -19,7 +19,7 @@
<p>{{ form.errors.values() | flatten | join(", ")}}</p>
{% endcall %}
{% endif %}
<div class="box alert" style="display: none;" id="id-warning">
<div class="box alert" role="alert" style="display: none;" id="id-warning">
<header>{% trans %}Incorrect address{% endtrans %}</header>
<p>{% trans snikket_domain=config["SNIKKET_DOMAIN"] %}This Snikket service only hosts addresses ending in <em>@{{ snikket_domain }}</em>. Your password was not sent.{% endtrans %}</p>
</div>