From 3f664a49bd9ff9de882838ba59570d38b7978aca Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Tue, 11 Jul 2023 18:27:59 +0100 Subject: [PATCH 1/2] Add margin-bottom to embedded attachments This change adds margin-bottom to embedded attachments. Without this, attachments have zero margin-bottom, meaning they look visually 'squished up' when multiple attachments are embedded one after the other in a document. This styling makes it consistent with the 'Documents' section that automatically gets added to some document types (for example, Publications in Whitehall). --- lib/govspeak/post_processor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/govspeak/post_processor.rb b/lib/govspeak/post_processor.rb index d6178711..d752ee82 100644 --- a/lib/govspeak/post_processor.rb +++ b/lib/govspeak/post_processor.rb @@ -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) From 6afad560c68d0451a21d13f768a50798f027771d Mon Sep 17 00:00:00 2001 From: Ollie Treend Date: Wed, 12 Jul 2023 10:01:06 +0100 Subject: [PATCH 2/2] Release version 8.0.1 --- CHANGELOG.md | 4 ++++ lib/govspeak/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d29347f7..40616aa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/govspeak/version.rb b/lib/govspeak/version.rb index cc08d423..13a773d7 100644 --- a/lib/govspeak/version.rb +++ b/lib/govspeak/version.rb @@ -1,3 +1,3 @@ module Govspeak - VERSION = "8.0.0".freeze + VERSION = "8.0.1".freeze end