a11y: give "remove file" link a button role (#40870)
This commit is contained in:
parent
214d1df3c6
commit
bfe446c444
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue