From 96d9eaa4b37b866b213849399b2bc5502acbd658 Mon Sep 17 00:00:00 2001 From: Joe Tower Date: Tue, 29 Aug 2023 15:39:43 -0500 Subject: [PATCH] fix(yalb-1215): create heading_level variables to pass to Drupal --- components/02-molecules/banner/action/yds-action-banner.twig | 2 +- components/02-molecules/banner/grand-hero/yds-grand-hero.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/02-molecules/banner/action/yds-action-banner.twig b/components/02-molecules/banner/action/yds-action-banner.twig index 013bd49cf..56f780e45 100644 --- a/components/02-molecules/banner/action/yds-action-banner.twig +++ b/components/02-molecules/banner/action/yds-action-banner.twig @@ -40,7 +40,7 @@
{% include "@atoms/typography/headings/yds-heading.twig" with { - heading__level: '2', + heading__level: banner__heading__level|default('2'), heading__blockname: banner__base_class, heading: banner__heading, } %} diff --git a/components/02-molecules/banner/grand-hero/yds-grand-hero.twig b/components/02-molecules/banner/grand-hero/yds-grand-hero.twig index cf7770bc8..e24834313 100644 --- a/components/02-molecules/banner/grand-hero/yds-grand-hero.twig +++ b/components/02-molecules/banner/grand-hero/yds-grand-hero.twig @@ -57,7 +57,7 @@
{% if grand_hero__heading is not empty %} {% include "@atoms/typography/headings/yds-heading.twig" with { - heading__level: '2', + heading__level: grand_hero__heading__level|default('2'), heading__blockname: grand_hero__base_class, heading: grand_hero__heading, } %}