Skip to content

Commit

Permalink
Merge pull request #281 from alphagov/add-margin-bottom-to-attachments
Browse files Browse the repository at this point in the history
Add margin-bottom to embedded attachments
  • Loading branch information
ollietreend authored Jul 12, 2023
2 parents b7b4cac + 6afad56 commit cc034ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 8.0.1

* Add margin-bottom to embedded attachments ([#281](https://github.com/alphagov/govspeak/pull/281))

## 8.0.0

* BREAKING: HTML style attribute and style element, which were never supposed to be available, are forbidden. [#279](https://github.com/alphagov/govspeak/pull/279)
Expand Down
1 change: 1 addition & 0 deletions lib/govspeak/post_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def self.extension(title, &block)
attachment_html = GovukPublishingComponents.render(
"govuk_publishing_components/components/attachment",
attachment: attachment,
margin_bottom: 6,
locale: govspeak_document.locale,
)
el.swap(attachment_html)
Expand Down
2 changes: 1 addition & 1 deletion lib/govspeak/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Govspeak
VERSION = "8.0.0".freeze
VERSION = "8.0.1".freeze
end

0 comments on commit cc034ab

Please sign in to comment.