Add aria-labels for comment count and remove button

This commit is contained in:
Steven Guikal 2021-08-19 13:06:01 -04:00 committed by Drew DeVault
parent 05f566696b
commit af6d7ed514
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ def label_badge(label, cls="", remove_from_ticket=None, terms=None):
remove_form = f""" remove_form = f"""
<form method="POST" action="{remove_url}"> <form method="POST" action="{remove_url}">
{csrf_token()} {csrf_token()}
<button type="submit" class="btn btn-link"> <button type="submit" class="btn btn-link" aria-label="Remove">
{icon('times')} {icon('times')}
</button> </button>
</form> </form>

View File

@ -213,7 +213,7 @@
{{ ticket.submitter.name }} {{ ticket.submitter.name }}
</a> </a>
</div> </div>
<div class="comments"> <div class="comments" aria-label="Comments">
<span class="icon_count"> <span class="icon_count">
{% if ticket.id in seen_ticket_ids or comment_counts.get(ticket.id, 0) == 0 %} {% if ticket.id in seen_ticket_ids or comment_counts.get(ticket.id, 0) == 0 %}
{{icon("comments-o")}} {{icon("comments-o")}}