From d691e637071c16233d0d19330df1194bcab9ab77 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Fri, 14 Oct 2022 20:02:55 -0400
Subject: [PATCH] ISTWCMS-5880: ensuring that title displays when banner is
 used

---
 src/patterns/04-components/card/card-elements/_media.twig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/patterns/04-components/card/card-elements/_media.twig b/src/patterns/04-components/card/card-elements/_media.twig
index f5a1b733..3031be5f 100644
--- a/src/patterns/04-components/card/card-elements/_media.twig
+++ b/src/patterns/04-components/card/card-elements/_media.twig
@@ -4,6 +4,12 @@
     {% include '@components/banners/banners.twig' with {
       'banners': media.media
     } only %}
+    {% if header %}
+      {% include '@components/card/card-elements/_header.twig' with {
+        'header': header,
+        'show_title': 'yes',
+      } %}
+    {% endif %}
   {% endif %}
 
   {% if media.type == 'image' %}
-- 
GitLab