From b9970a7e28eeace0a77c5a5c670bd78b6569ab48 Mon Sep 17 00:00:00 2001 From: Sherakama Date: Tue, 15 Oct 2019 23:02:21 -0700 Subject: [PATCH 1/2] Update _hero.scss --- core/src/scss/components/hero/_hero.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/scss/components/hero/_hero.scss b/core/src/scss/components/hero/_hero.scss index cd88a9693..1a59d469f 100644 --- a/core/src/scss/components/hero/_hero.scss +++ b/core/src/scss/components/hero/_hero.scss @@ -48,6 +48,7 @@ $_su-hero-height: ( background: $su-color-black; height: 100%; width: 100%; + overflow: hidden; @include grid-media('md') { min-height: map-get($_su-hero-height, 'md'); From 2b1e9c8bf6139a9a084acf92b4ba097bf60955d7 Mon Sep 17 00:00:00 2001 From: Sherakama Date: Tue, 15 Oct 2019 23:52:27 -0700 Subject: [PATCH 2/2] Update hero.twig --- core/src/templates/components/hero/hero.twig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/src/templates/components/hero/hero.twig b/core/src/templates/components/hero/hero.twig index dac111bd4..9d911eedb 100644 --- a/core/src/templates/components/hero/hero.twig +++ b/core/src/templates/components/hero/hero.twig @@ -43,7 +43,14 @@ {{ hero_image}} {% endif %} - + {# Only include the card template if there is content to render. #} + {%- if + hero_super_headline is not empty or + hero_headline is not empty or + hero_body is not empty or + hero_cta_label is not empty or + hero_button_label is not empty + -%} {# We reuse the card component here. #} {% include template_path_card with { @@ -59,5 +66,5 @@ } only %} - + {%- endif -%}