Skip to content

Commit

Permalink
Merge pull request #3963 from alphagov/titles-to-headings
Browse files Browse the repository at this point in the history
Replace title components with headings
  • Loading branch information
matthillco authored Jan 22, 2025
2 parents a86d603 + e02d688 commit 84ed6b7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= 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
} %>
</div>
</div>
</div>
Expand Down
9 changes: 7 additions & 2 deletions app/views/development/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
</head>
<body>
<div id="wrapper">
<main class="govspeak">
<%= render "govuk_publishing_components/components/title", title: "collections" %>
<main class="govspeak govuk-!-margin-top-8">
<%= render "govuk_publishing_components/components/heading", {
text: "collections",
heading_level: 1,
font_size: "xl",
margin_bottom: 8
} %>
<% html = capture do %>
<p><%= t('development.header') %>.</p>
<table>
Expand Down
10 changes: 5 additions & 5 deletions app/views/taxons/_page_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= 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
Expand Down

0 comments on commit 84ed6b7

Please sign in to comment.