diff --git a/CHANGELOG.md b/CHANGELOG.md index fbc7bac2b1..802a2e44f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ useful summary for people upgrading their application, not a replication of the commit log. +## Unreleased + +* Extend image card to support html description (PR #392) + ## 9.3.4 * Adjust metadata spacing in image card (PR #390) diff --git a/lib/govuk_publishing_components/presenters/image_card_helper.rb b/lib/govuk_publishing_components/presenters/image_card_helper.rb index 301b0b39a5..44f3ec3ae6 100644 --- a/lib/govuk_publishing_components/presenters/image_card_helper.rb +++ b/lib/govuk_publishing_components/presenters/image_card_helper.rb @@ -49,7 +49,7 @@ def heading_tag end def description - content_tag(:p, @description, class: "gem-c-image-card__description") if @description + content_tag(:div, @description, class: "gem-c-image-card__description") if @description end end end