Skip to content

Commit

Permalink
Use govuk-frontend no print style instead of dont-print class
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Jul 11, 2024
1 parent 0c442a1 commit f54d25d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/components/_back_to_top.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%
text ||= t('content_item.contents', default: "Contents")
%>
<a class="govuk-link app-c-back-to-top dont-print"
<a class="govuk-link app-c-back-to-top govuk-!-display-none-print"
href="<%= href %>">
<svg class="app-c-back-to-top__icon" xmlns="http://www.w3.org/2000/svg" width="13" height="17" viewBox="0 0 13 17" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M6.5 0L0 6.5 1.4 8l4-4v12.7h2V4l4.3 4L13 6.4z"/>
Expand Down
2 changes: 1 addition & 1 deletion app/views/content_items/call_for_evidence.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<% end %>

<div class="content-bottom-margin">
<div class="dont-print responsive-bottom-margin">
<div class="govuk-!-display-none-print responsive-bottom-margin">
<%= render 'govuk_publishing_components/components/share_links',
links: @content_item.share_links,
track_as_sharing: true,
Expand Down
2 changes: 1 addition & 1 deletion app/views/content_items/consultation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
<% end %>

<div class="content-bottom-margin">
<div class="dont-print responsive-bottom-margin">
<div class="govuk-!-display-none-print responsive-bottom-margin">
<%= render 'govuk_publishing_components/components/share_links',
links: @content_item.share_links,
track_as_sharing: true,
Expand Down
2 changes: 1 addition & 1 deletion app/views/content_items/news_article.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<% end %>
</div>

<div class="dont-print responsive-bottom-margin">
<div class="govuk-!-display-none-print responsive-bottom-margin">
<%= render 'govuk_publishing_components/components/share_links',
links: @content_item.share_links,
track_as_sharing: true,
Expand Down

0 comments on commit f54d25d

Please sign in to comment.