diff --git a/templates/content/node--teaser.html.twig b/templates/content/node--teaser.html.twig index 653987f25e..bae35c2ee7 100644 --- a/templates/content/node--teaser.html.twig +++ b/templates/content/node--teaser.html.twig @@ -91,7 +91,8 @@ 'rel': 'bookmark', } %} - +{# Role is removed from below to avoid populating UI with role="article" elements for accessibility #} +
{% if image.0 %} diff --git a/templates/module/helfi-news-item/news-teaser-generic.twig b/templates/module/helfi-news-item/news-teaser-generic.twig index 9839eaab8c..8aebcb2f6a 100644 --- a/templates/module/helfi-news-item/news-teaser-generic.twig +++ b/templates/module/helfi-news-item/news-teaser-generic.twig @@ -7,7 +7,8 @@ %} {% endif %} - +{# Role is removed from below to avoid populating UI with role="article" elements for accessibility #} + {# Short title or Title #} <{{ heading_level }} class="news-listing__title"> {% set link_attributes = {