From b1320fdc17af48cae464ff91eb8f8bcb856d52e7 Mon Sep 17 00:00:00 2001 From: Matt Shaw Date: Wed, 1 Nov 2023 16:19:02 +0000 Subject: [PATCH] accordion changes --- .../templates/components/accordion/macro.html | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/govuk_frontend_jinja/templates/components/accordion/macro.html b/govuk_frontend_jinja/templates/components/accordion/macro.html index bcb84f64..6e5288dd 100644 --- a/govuk_frontend_jinja/templates/components/accordion/macro.html +++ b/govuk_frontend_jinja/templates/components/accordion/macro.html @@ -1,15 +1,41 @@ {% macro govukAccordion(params) %} +{% from "govuk_frontend_jinja/macros/i18n.html" import govukI18nAttributes %} + {% set id = params.id %} {% set headingLevel = params.headingLevel if params.headingLevel else 2 %}
{% for item in params['items'] %} {% if item %}