a11y: add title attribute to asterisk marking required fields (#34792)
This commit is contained in:
parent
a329682e41
commit
ca0eff6c74
|
@ -1,3 +1,4 @@
|
|||
{% load i18n %}
|
||||
<div class="widget
|
||||
{{ field.css_classes }}
|
||||
{% if field.errors %}widget-with-error{% endif %}
|
||||
|
@ -6,7 +7,7 @@
|
|||
{% block widget-title %}
|
||||
<div class="title">
|
||||
{{ field.label_tag }}
|
||||
{% if field.field.required %}<span class="required">*</span>{% endif %}
|
||||
{% if field.field.required %}<span title="{% trans "This field is required." %}" class="required">*</span>{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block widget-content %}
|
||||
|
|
Loading…
Reference in New Issue