From e02d688e2e796856dad2c854ea5af8183ca8c193 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 22 Jan 2025 08:41:53 +0000 Subject: [PATCH] Replace title components with headings --- .../components/landing_page/_page_header.html.erb | 12 +++++++----- app/views/development/index.html.erb | 9 +++++++-- app/views/taxons/_page_header.html.erb | 10 +++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/app/views/coronavirus_landing_page/components/landing_page/_page_header.html.erb b/app/views/coronavirus_landing_page/components/landing_page/_page_header.html.erb index 9ab05a14a..f9bf83446 100644 --- a/app/views/coronavirus_landing_page/components/landing_page/_page_header.html.erb +++ b/app/views/coronavirus_landing_page/components/landing_page/_page_header.html.erb @@ -8,11 +8,13 @@
- <%= render "govuk_publishing_components/components/title", { - title: raw(title), - inverse: true, - margin_top: 0 - } %> + <%= render "govuk_publishing_components/components/heading", { + text: raw(title), + heading_level: 1, + font_size: "xl", + inverse: true, + margin_bottom: 8 + } %>
diff --git a/app/views/development/index.html.erb b/app/views/development/index.html.erb index 7747db2fa..e7c100331 100644 --- a/app/views/development/index.html.erb +++ b/app/views/development/index.html.erb @@ -7,8 +7,13 @@
-
- <%= render "govuk_publishing_components/components/title", title: "collections" %> +
+ <%= render "govuk_publishing_components/components/heading", { + text: "collections", + heading_level: 1, + font_size: "xl", + margin_bottom: 8 + } %> <% html = capture do %>

<%= t('development.header') %>.

diff --git a/app/views/taxons/_page_header.html.erb b/app/views/taxons/_page_header.html.erb index 11d067835..f2564f903 100644 --- a/app/views/taxons/_page_header.html.erb +++ b/app/views/taxons/_page_header.html.erb @@ -5,13 +5,13 @@
- <%= render "govuk_publishing_components/components/title", { - title: presented_taxon.title, - average_title_length: 'long', + <%= render "govuk_publishing_components/components/heading", { + text: presented_taxon.title, + heading_level: 1, + font_size: "l", inverse: true, - margin_top: 0 + margin_bottom: 8 } %> - <%= render 'govuk_publishing_components/components/lead_paragraph', { text: presented_taxon.description, inverse: true