From 512680af9b21b2f804c79c78bec1744beae2e4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20N=C3=BA=C3=B1ez?= <48533432+mariannuar@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:05:13 -0600 Subject: [PATCH] SHS-5571: A11y Level A: Empty headings on Vertical Timeline components (#1502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(shs-5571): A11y Level A: Empty headings on Vertical Timeline components * fix(shs-5571): minor code consistency fix in timeline template --------- Co-authored-by: Mari Núñez Co-authored-by: Andrés Díaz Soto --- .../humsci/hs_layouts/patterns/timeline/timeline.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docroot/modules/humsci/hs_layouts/patterns/timeline/timeline.html.twig b/docroot/modules/humsci/hs_layouts/patterns/timeline/timeline.html.twig index 81ff6ee938..f93e930e70 100644 --- a/docroot/modules/humsci/hs_layouts/patterns/timeline/timeline.html.twig +++ b/docroot/modules/humsci/hs_layouts/patterns/timeline/timeline.html.twig @@ -9,7 +9,7 @@ {% endif %} {% set timeline_content = timeline %} -{% if timeline['field_hs_time_title'] is defined %} +{% if timeline['field_hs_time_title'] is defined and timeline['field_hs_time_title'][0] is defined %} {% set timeline_content %} <{{ heading_tag }} class="hb-timeline__title"> {{ timeline['field_hs_time_title'] }}