From cd5f5f0d399e62b1c268e80e1185fd245d3ff20d Mon Sep 17 00:00:00 2001 From: Ans Date: Wed, 3 Apr 2024 14:52:22 -0400 Subject: [PATCH 1/2] Featured cards tidying --- .../v1/includes/molecules/feature-card.html | 76 +++++++++---------- .../v1/includes/organisms/feature-cards.html | 47 ++++++------ 2 files changed, 61 insertions(+), 62 deletions(-) diff --git a/cfgov/v1/jinja2/v1/includes/molecules/feature-card.html b/cfgov/v1/jinja2/v1/includes/molecules/feature-card.html index 82423f38326..53212863285 100644 --- a/cfgov/v1/jinja2/v1/includes/molecules/feature-card.html +++ b/cfgov/v1/jinja2/v1/includes/molecules/feature-card.html @@ -16,8 +16,6 @@ value.category.url: A string for the URL of the category page. value.category.text: A string for the title of the category. - - value.category.aria_label: (Optional) An aria-label for the category page link. value.icon: A string corresponding to an SVG icon. @@ -40,44 +38,46 @@

- -{{ svg_icon( value.icon ) }} -{{ value.category.text }} - + + {{ svg_icon( value.icon ) }} + {{ value.category.text }} +

- - - -
diff --git a/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html b/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html index 979d80357f8..ee3d1e44637 100644 --- a/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html +++ b/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html @@ -23,27 +23,26 @@

Browse questions by category

- - -
-
-
- -{% for card in value.feature_cards %} - {{- feature_card(card) }} -{% endfor %} - -
-
-
- - \ No newline at end of file + + +
+
+
+ + {% for card in value.feature_cards %} + {{- feature_card(card) }} + {% endfor %} + +
+
+
+ From 78fa2b21f1ea04e7d10fe31858005d2a3a325b64 Mon Sep 17 00:00:00 2001 From: Ans Date: Wed, 3 Apr 2024 15:24:01 -0400 Subject: [PATCH 2/2] Remove unused `ask-categories` class --- cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html b/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html index ee3d1e44637..54aa0768bcb 100644 --- a/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html +++ b/cfgov/v1/jinja2/v1/includes/organisms/feature-cards.html @@ -18,7 +18,7 @@ {%- from 'v1/includes/blocks/heading.html' import heading without context %} {%- from 'v1/includes/molecules/feature-card.html' import feature_card with context %} -
+

Browse questions by category