Skip to content

Commit 0d39506

Browse files
committed
Issue #2937639 by hotwebmatter, hiway, andrewmacpherson, markconroy, shaal, cehfisher, mgifford, kjay, Eli-T, kbeck303: Umami Theme - a11y context is needed for read more links
(cherry picked from commit 3eeddcf)
1 parent 947ee9a commit 0d39506

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

profiles/demo_umami/themes/umami/templates/content/node--card-common.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
{{ title_suffix }}
9595

9696
<div class="read-more">
97-
<a class="read-more__link" href="{{ url }}">{% trans %}View {{ node.type.entity.label() }}{% endtrans %}</a>
97+
<a class="read-more__link" href="{{ url }}">
98+
{% trans %}View {{ node.type.entity.label() }}{% endtrans %} <span class="visually-hidden"> - {{ label }}</span>
99+
</a>
98100
</div>
99101

100102
<div{{ content_attributes.addClass('node__content') }}>

profiles/demo_umami/themes/umami/templates/content/node--card.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
</div>
9696

9797
<div class="read-more">
98-
<a class="read-more__link" href="{{ url }}">{% trans %}View {{ node.type.entity.label() }}{% endtrans %}</a>
98+
<a class="read-more__link" href="{{ url }}">
99+
{% trans %}View {{ node.type.entity.label() }}{% endtrans %} <span class="visually-hidden"> - {{ label }}</span>
100+
</a>
99101
</div>
100102

101103
</article>

0 commit comments

Comments
 (0)