Address a bunch of accessibility issues

- Add missing labels for form fields
- Improve contrast slightly
- Remove incorrect aria-label= and title= attributes
- Use fieldset for radio button groups
This commit is contained in:
Jonas Schäfer
2021-01-29 15:57:37 +01:00
parent 57adf0c679
commit 9612926230
9 changed files with 45 additions and 29 deletions

View File

@@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
<div class="form layout-expanded"><form method="POST">
<h2 class="form-title">{% trans %}Change your password{% endtrans %}</h2>
<h1 class="form-title">{% trans %}Change your password{% endtrans %}</h1>
<p class="form-desc weak">{% trans %}To change your password, you need to provide the current password as well as the new one. To reduce the chance of typos, we ask for your new password twice.{% endtrans %}</p>
{{ form.csrf_token }}
{%- call render_errors(form) -%}