diff --git a/CHANGELOG.md b/CHANGELOG.md index 23cb52801..fd5beae6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fix Sass deprecation on `mix` function (passing a number without unit) ([PR 995](https://github.com/nhsuk/nhsuk-frontend/pull/995)) - Add nhsukAttributes macro, copied from GOV.UK ([PR 998](https://github.com/nhsuk/nhsuk-frontend/pull/998)) +- Add support for inline conditions on summary list rows ([PR 1008](https://github.com/nhsuk/nhsuk-frontend/pull/1008)) - Change "Contact us" in the footer link examples to "Give us feedback" ([PR 972](https://github.com/nhsuk/nhsuk-frontend/pull/972)) - Adjusted default spacing of back link component ([PR 964](https://github.com/nhsuk/nhsuk-frontend/pull/964)) - Reduce main wrapper padding on mobile ([PR 1003](https://github.com/nhsuk/nhsuk-frontend/pull/1003)) diff --git a/packages/components/summary-list/template.njk b/packages/components/summary-list/template.njk index f25befd26..4797661fb 100644 --- a/packages/components/summary-list/template.njk +++ b/packages/components/summary-list/template.njk @@ -10,6 +10,7 @@ {% endmacro -%}
{% for row in params.rows %} + {% if row %}
{{ row.key.html | safe if row.key.html else row.key.text }} @@ -33,5 +34,6 @@ {% endif %}
+ {% endif %} {% endfor %}