Skip to content

Commit 77cd859

Browse files
committed
a11y: #4225 olh article_list_item aria markup
1 parent 0c8cfee commit 77cd859

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/themes/OLH/templates/journal/homepage_elements/article_list_item.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66

77
<div class="olh-banner">
88
<a href="{% if article.is_remote %}{{ article.remote_url }}{% else %}{{ article.url }}{% endif %}"
9-
class="box-link"></a>
9+
class="box-link"
10+
aria-labelledby="banner-title-{{ article.id }}"
11+
aria-describedby="banner-detail-{{ article.id }}"
12+
>
13+
</a>
1014
{% if not disable_image %}
1115
<img src="{{ article.best_large_image_url }}"
1216
alt="{{ article.title|striptags }}"
1317
class="olh-banner-image">
1418
<div class="overlay"></div>
1519
{% endif %}
1620
<div {% if not disable_image %}class="olh-banner-heading"{% endif %}>
17-
<p class="byline">{{ article.author_list }}</p>
18-
<h3>{{ article.title|safe|truncatechars:200 }}</h3>
21+
<p id="banner-detail-{{article.id}}" class="byline">{{ article.author_list }}</p>
22+
<h3 id="banner-title-{{ article.id }}">{{ article.title|safe|truncatechars:200 }}</h3>
1923
</div>
2024
</div>

0 commit comments

Comments
 (0)