a11y: give "remove file" link a button role (#40870)

This commit is contained in:
Frédéric Péters 2020-03-28 11:09:07 +01:00
parent 214d1df3c6
commit bfe446c444
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<div class="fileinfo {% if widget.readonly and widget.has_tempfile_image %}thumbnail{% endif %}">
<span class="filename">{{ widget.tempfile.base_filename }}</span>
{% if not widget.readonly %}
<a href="#" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
<a href="#" role="button" class="remove" title="{% trans 'Remove this file' %}">{% trans "remove" %}</a>
{% elif widget.has_tempfile_image %}
<img alt="" src="tempfile?t={{ widget.tempfile.token }}&thumbnail=1"/>
{% endif %}