Skip to content

Commit df6e0cc

Browse files
committed
Update CSV previews to use html publication variant of inverse header
A design decision was made to retain the blue background on the CSV previews for now, reflecting the fact that the context is different than for the full page header that will be light blue with the new style inverse header.
1 parent d08ba8f commit df6e0cc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/views/csv_preview/malformed_csv.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
<div class="govuk-grid-row">
3333
<div class="govuk-grid-column-full">
34-
<%= render "govuk_publishing_components/components/inverse_header", {} do %>
34+
<%= render "govuk_publishing_components/components/inverse_header", {
35+
html_publication_header: true,
36+
} do %>
3537
<%= render "govuk_publishing_components/components/heading", {
3638
context: I18n.t("formats.#{@content_item['document_type']}.name", count: 1),
3739
text: @attachment_metadata["title"],

app/views/csv_preview/show.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<div class="govuk-grid-row">
3535
<div class="govuk-grid-column-full">
3636
<%= render "govuk_publishing_components/components/inverse_header", {
37+
html_publication_header: true,
3738
padding_top: 8,
3839
} do %>
3940
<%= render "govuk_publishing_components/components/heading", {

app/views/service_manual/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
Helping teams to create and run great public services that meet the <%= link_to "Service Standard", "/service-manual/service-standard", class: "govuk-link gem-c-inverse-header__link" %>.
2525
<% end %>
2626
<%= render "govuk_publishing_components/components/lead_paragraph", {
27-
text: lead_para
27+
text: lead_para,
2828
} %>
2929
<form
3030
action="/search"

0 commit comments

Comments
 (0)