From b0ae32a62a62c4d5d7387a8d106f09abde7b8918 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 21 Jun 2024 15:21:37 +0100 Subject: [PATCH] Hide components that should not print --- .../components/_action_link.html.erb | 2 +- .../components/_copy_to_clipboard.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/govuk_publishing_components/components/_action_link.html.erb b/app/views/govuk_publishing_components/components/_action_link.html.erb index 87f68c4492..8827482db8 100644 --- a/app/views/govuk_publishing_components/components/_action_link.html.erb +++ b/app/views/govuk_publishing_components/components/_action_link.html.erb @@ -17,7 +17,7 @@ dark_large_icon ||= false light_icon ||= false - css_classes = %w(gem-c-action-link) + css_classes = %w(gem-c-action-link govuk-!-display-none-print) css_classes << "gem-c-action-link--light-text" if light_text css_classes << "gem-c-action-link--dark-icon" if dark_icon css_classes << "gem-c-action-link--dark-large-icon" if dark_large_icon diff --git a/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb b/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb index 17c23c95db..2b9cc5b105 100644 --- a/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb +++ b/app/views/govuk_publishing_components/components/_copy_to_clipboard.html.erb @@ -2,7 +2,7 @@ button_data_attributes ||= nil input_data_attributes ||= nil %> -
+
<%= render "govuk_publishing_components/components/input", { label: { text: label,