Replace delete text with icon and add aria

This commit is contained in:
Jannis Portmann 2021-05-19 00:19:05 +02:00
parent 1d52dfd83a
commit a3bd73abd1

View file

@ -28,7 +28,7 @@
{% for wish in wishes %} {% for wish in wishes %}
<li class="list-group-item d-flex justify-content-between align-items-center"> {{ wish.title }} <li class="list-group-item d-flex justify-content-between align-items-center"> {{ wish.title }}
<span> <span>
<a href="{{ path('delete_wish', {'id': wish.id}) }}"><button class="btn btn-danger">Delete</button></a> <a href="{{ path('delete_wish', {'id': wish.id}) }}" class="btn btn-danger" aria-label="Delete"><i class="fas fa-trash-alt" aria-hidden="true" title="Delete"></i></a>
</span> </span>
</li> </li>
{% endfor %} {% endfor %}