Skip to content

Commit a84d275

Browse files
committed
Use the Lead paragraph component from the gem
https://trello.com/c/7Fwv498s
1 parent 2079044 commit a84d275

16 files changed

+16
-20
lines changed

app/views/content_items/case_study.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

app/views/content_items/corporate_information_page.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
<%= render 'shared/translations' %>
4040
<div class="column-two-thirds">
41-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
41+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
4242
<%= render 'components/notice', @content_item.withdrawal_notice_component %>
4343
</div>
4444
</div>

app/views/content_items/detailed_guide.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

app/views/content_items/document_collection.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
<%= render 'shared/translations', content_item: @content_item %>
1515
<div class="column-two-thirds">
16-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
16+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1717
<%= render 'components/notice', @content_item.withdrawal_notice_component %>
1818
<%= render 'shared/history_notice', content_item: @content_item %>
1919
</div>

app/views/content_items/fatality_notice.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

app/views/content_items/news_article.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

app/views/content_items/publication.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<%= render 'shared/translations' %>
1515

1616
<div class="column-two-thirds">
17-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
17+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1818
</div>
1919
</div>
2020

app/views/content_items/specialist_document.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<%= render 'shared/translations' %>
1414
<div class="column-two-thirds">
15-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
15+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1616
</div>
1717
</div>
1818

app/views/content_items/speech.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

app/views/content_items/statistical_data_set.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
<%= render 'shared/translations', content_item: @content_item %>
1515
<div class="column-two-thirds">
16-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
16+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1717
<%= render 'components/notice', @content_item.withdrawal_notice_component %>
1818
<%= render 'shared/history_notice', content_item: @content_item %>
1919
</div>

app/views/content_items/statistics_announcement.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="grid-row">
88
<div class="column-two-thirds">
99
<%= render 'govuk_component/title', @content_item.title_and_context %>
10-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
10+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1111
</div>
1212
</div>
1313

app/views/content_items/take_part.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="grid-row">
88
<div class="column-two-thirds">
99
<%= render 'govuk_component/title', @content_item.title_and_context %>
10-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
10+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1111
</div>
1212

1313
<%= render 'shared/translations' %>

app/views/content_items/topical_event_about_page.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<div class="grid-row">
1010
<div class="column-two-thirds">
11-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
11+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1212
</div>
1313
</div>
1414

app/views/content_items/working_group.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</div>
2727
<%= render 'shared/translations' %>
2828
<div class="column-two-thirds">
29-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
29+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
3030
<%= render 'components/contents-list-with-body', contents: @content_item.contents do %>
3131
<%= render 'govuk_component/govspeak',
3232
content: "#{@content_item.body} #{@additional_body}",

app/views/content_items/world_location_news_article.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<%= render 'shared/translations' %>
1212
<div class="column-two-thirds">
13-
<%= render 'govuk_component/lead_paragraph', text: @content_item.description %>
13+
<%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
1414
</div>
1515
</div>
1616

test/integration/fatality_notice_test.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ class FatalityNoticeTest < ActionDispatch::IntegrationTest
3333
"Field of operation": { "Zululand": "/government/fields-of-operation/zululand" }
3434
)
3535

36-
assert_component_parameter(
37-
"lead_paragraph",
38-
"text",
39-
"It is with great sadness that the Ministry of Defence must confirm that Sir George Pomeroy Colley, died in battle in Zululand on 27 February 1881."
40-
)
36+
assert page.has_content?("It is with great sadness that the Ministry of Defence must confirm that Sir George Pomeroy Colley, died in battle")
4137

4238
assert(
4339
page.has_css?("img[src*=ministry-of-defence-crest][alt='Ministry of Defence crest']"),

0 commit comments

Comments
 (0)