From 5199a37fcc497a8e26f89827a791aa0ad8f89218 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 23 Jun 2022 15:02:29 -0400
Subject: [PATCH] ISTWCMS-5647: coding standards for card element date

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

diff --git a/src/patterns/04-components/card/card-elements/_date.twig b/src/patterns/04-components/card/card-elements/_date.twig
index 249478b4..9ae8a30e 100644
--- a/src/patterns/04-components/card/card-elements/_date.twig
+++ b/src/patterns/04-components/card/card-elements/_date.twig
@@ -5,15 +5,18 @@
       <details class="uw-date-details">
       <summary role="button" aria-controls="edit-future-dates-collapsible" aria-expanded="false" aria-pressed="false" class="uw-date-details__summary">
     {% endif %}
+
     {% if modifier_classes != 'node--opportunity' %}
-    <span class="uw-date">
+      <span class="uw-date">
     {% endif %}
+
     {% if d.all_day %}
       {% if d.start_date %}
         {% set ddate = d.start_date %}
       {% else %}
         {% set ddate = d.date %}
       {% endif %}
+
       {% include '@components/date/_date.twig' with {
         'date_format': 'long',
         'date': ddate,
@@ -30,6 +33,7 @@
           'date': d.end_date,
         } %}
       {% else %}
+
         {% include '@components/date/_date.twig' with {
           'date_format': 'long_with_time',
           'date': d.end_date,
@@ -49,7 +53,7 @@
     {% endif %}
 
     {% if date|length > 1 and loop.index0 == 0 %}
-    </summary>
+      </summary>
     {% endif %}
 
     {% if date|length > 1 and loop.last %}
-- 
GitLab