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

Replace organisation logos with metadata #3310

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hannako
Copy link
Contributor

@hannako hannako commented Aug 27, 2024

This commit is a spike to explore how easy/hard it would be to replace organisation logos on HTML attachments with a call to the metadata component instead:
https://components.publishing.service.gov.uk/component-guide/metadata#on_a_dark_background_without_padding

Some organisations have custom logos, but we only display the logo if it will be the only logo on the page. If it will sit alongside other logos, we hide the custom logo. This behaviour is weird and unexpected.

Before After
Screenshot 2024-08-27 at 17 17 41 Screenshot 2024-08-27 at 17 18 22

Live site
Review app

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

Trello: https://trello.com/c/3jez4Zg9/2799-understand-technical-design-and-content-implications-of-removing-org-logos-from-html-attachments

This commit is a spike to explore how easy/hard it would be to replace
organisation logos on HTML attachments with a call to the metadata component
instead:
https://components.publishing.service.gov.uk/component-guide/metadata#on_a_dark_background_without_padding

Some organisations have custom logos, but we only display the logo if it will be
the only logo on the page. If it will sit alongside other logos, we hide the custom
logo. This behaviour is weird and unexpected.
%>
<p class="publication-header__last-changed"><%= @content_item.last_changed %></p>
<% end %>
<div class="govuk-!-margin-top-5">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like the approach of using a utility class from the design system here, avoids adding custom CSS / stylesheet and easy to understand what it does just from looking at the view template 👍

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.

3 participants