[A11y] add missing sr-only-text for clock-icon

This commit is contained in:
Richard Schreiber
2025-04-29 12:28:46 +02:00
committed by GitHub
parent 1804dbebd0
commit d3792935ae
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
<br>
<span data-time="{{ subev.date_from.isoformat }}" data-timezone="{{ event.timezone }}" data-time-short>
{% icon "clock-o" %}
<span class="sr-only">{% trans "Time of day" %}</span>
<time datetime="{{ subev.date_from.isoformat }}">{{ subev.date_from|date:"TIME_FORMAT" }}</time>
</span>
{% endif %}

View File

@@ -69,6 +69,7 @@
<br>
<span class="text-muted" data-time="{{ e.date_from.isoformat }}" data-timezone="{{ e.tzname }}">
{% icon "clock-o" %}
<span class="sr-only">{% trans "Time of day" %}</span>
<time datetime="{{ e.date_from|date_fast:"H:i" }}">{{ e.date_from|date:"TIME_FORMAT" }}</time>
{% if e.settings.show_date_to and e.date_to and e.date_to.date == e.date_from.date %}
<span aria-hidden="true"></span><span class="sr-only">{% trans "until" context "timerange" %}</span>