From d0b3a5cdff911bc3166107eaa785c0f126f1b014 Mon Sep 17 00:00:00 2001
From: ubcjohn <john.bratlien@ubc.ca>
Date: Tue, 5 Nov 2024 17:41:58 -0800
Subject: [PATCH] output flex classes when card icon position set to top

---
 components/card--icon/card--icon.twig | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/components/card--icon/card--icon.twig b/components/card--icon/card--icon.twig
index ccd44fc..65794f3 100644
--- a/components/card--icon/card--icon.twig
+++ b/components/card--icon/card--icon.twig
@@ -40,6 +40,13 @@
     'mt-0',
   ]
 %}
+{% if layout is same as 'flex-col' %}
+  {% set layout_classes = [
+      'flex',
+      'flex-col',
+    ]
+  %}
+{% endif %}
 {% if layout is same as 'flex-row' %}
   {% set layout_classes = [
       'sm--flex',
@@ -54,18 +61,6 @@
     ]
   %}
 {% endif %}
-{% if layout is same as 'ubc-card--horiz' or layout is same as 'ubc-card--horiz-rev' %}
-  {% set figure_layout_classes = [
-      'sm--max-w-[300px]',
-      'sm--shrink-0',
-    ]
-  %}
-  {% set horiz_content_classes = [
-      'flex-1',
-      'self-center',
-    ]
-  %}
-{% endif %}
 <article{{ cardprimaryattributes.addClass(classes, layout_classes) }}>
   <figure{{ figureattributes.addClass(figure_classes, figure_layout_classes) }}>
     {% block media %}{% endblock %}