Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add margin-bottom to embedded attachments #281

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

ollietreend
Copy link
Contributor

@ollietreend ollietreend commented Jul 11, 2023

This PR is an enabler for: https://trello.com/c/Z5IwGrAw/1177-remove-custom-attachment-rendering-from-whitehall

What

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 also makes it consistent with the 'Documents' section that automatically gets added to some document types (for example, Publications in Whitehall).

Visual changes

In this example, multiple attachments have been embedded into the document one after the other.

Some pseudo Govspeak for this would be:

[Attachment: england_full_dataset.ods]

[Attachment: table_13_indirect_emissions.xls]

[Attachment: conversion_factors.ods]
Before After
before after

This repo is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

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).
@brucebolt
Copy link
Member

You'll need to republish every document with an attachment once the gem has been bumped in the relevant publishing app.

@ollietreend ollietreend merged commit cc034ab into main Jul 12, 2023
@ollietreend ollietreend deleted the add-margin-bottom-to-attachments branch July 12, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants