Skip to content

Commit

Permalink
Merge pull request #392 from alphagov/support-html-description
Browse files Browse the repository at this point in the history
Support html description
  • Loading branch information
Vanita Barrett authored Jun 26, 2018
2 parents cb2ef1c + 7c00247 commit a9ff02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9ff02e

Please sign in to comment.