Skip to content

Commit

Permalink
Remove heading component
Browse files Browse the repository at this point in the history
- update to use component from gem
  • Loading branch information
andysellick committed May 1, 2018
1 parent fb0d1f7 commit e50d61f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 91 deletions.
10 changes: 0 additions & 10 deletions app/assets/stylesheets/components/_heading.scss

This file was deleted.

11 changes: 0 additions & 11 deletions app/views/components/_heading.html.erb

This file was deleted.

32 changes: 0 additions & 32 deletions app/views/components/docs/heading.yml

This file was deleted.

4 changes: 2 additions & 2 deletions app/views/content_items/_publication_inline_body.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= render 'components/heading',
<%= render 'govuk_publishing_components/components/heading',
text: t("publication.documents", count: 5), # This should always be pluralised.
id: "documents-title" %>

Expand All @@ -8,7 +8,7 @@
direction: page_text_direction %>
</div>

<%= render 'components/heading', text: t("publication.details"), id: "details-title" %>
<%= render 'govuk_publishing_components/components/heading', text: t("publication.details"), id: "details-title" %>

<div aria-labelledby="details-title">
<%= render 'govuk_component/govspeak',
Expand Down
16 changes: 8 additions & 8 deletions app/views/content_items/consultation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
<%= render 'components/notice', title: 'This consultation has concluded' %>

<% if @content_item.final_outcome_documents? %>
<%= render 'components/heading', text: "Download the full outcome" %>
<%= render 'govuk_publishing_components/components/heading', text: "Download the full outcome" %>
<div class="consultation-outcome">
<%= render 'govuk_component/govspeak',
content: @content_item.final_outcome_documents,
direction: page_text_direction %>
</div>
<% end %>

<%= render 'components/heading', text: "Detail of outcome" %>
<%= render 'govuk_publishing_components/components/heading', text: "Detail of outcome" %>
<div class="consultation-outcome-detail">
<%= render 'govuk_component/govspeak',
content: @content_item.final_outcome_detail,
Expand All @@ -48,7 +48,7 @@
<% end %>

<% if @content_item.public_feedback_documents? %>
<%= render 'components/heading', text: "Feedback received" %>
<%= render 'govuk_publishing_components/components/heading', text: "Feedback received" %>
<div class="consultation-feedback-documents">
<%= render 'govuk_component/govspeak',
content: @content_item.public_feedback_documents,
Expand All @@ -57,7 +57,7 @@
<% end %>

<% if @content_item.public_feedback_detail %>
<%= render 'components/heading', text: "Detail of feedback received" %>
<%= render 'govuk_publishing_components/components/heading', text: "Detail of feedback received" %>
<div class="consultation-feedback">
<%= render 'govuk_component/govspeak',
content: @content_item.public_feedback_detail,
Expand All @@ -68,7 +68,7 @@
<% if @content_item.final_outcome? %>
<section class="original-consultation">
<header>
<%= render 'components/heading', text: "Original consultation", id: "original-consultation-title", heading_level: 2 %>
<%= render 'govuk_publishing_components/components/heading', text: "Original consultation", id: "original-consultation-title", heading_level: 2 %>
</header>
<% end %>

Expand Down Expand Up @@ -102,11 +102,11 @@


<div class="consultation-description">
<%= render 'components/heading', text: "Consultation description" %>
<%= render 'govuk_publishing_components/components/heading', text: "Consultation description" %>
<%= render 'govuk_component/govspeak', @content_item.govspeak_body %>

<% if @content_item.documents? %>
<%= render 'components/heading', text: "Documents" %>
<%= render 'govuk_publishing_components/components/heading', text: "Documents" %>
<div class="consultation-documents">
<%= render 'govuk_component/govspeak',
content: @content_item.documents,
Expand All @@ -117,7 +117,7 @@

<% if @content_item.ways_to_respond? %>
<div class="consultation-ways-to-respond">
<%= render 'components/heading', text: "Ways to respond" %>
<%= render 'govuk_publishing_components/components/heading', text: "Ways to respond" %>
<% @ways_to_respond_body = capture do %>
<% if @content_item.respond_online_url %>
<div class="call-to-action">
Expand Down
28 changes: 0 additions & 28 deletions test/components/heading_test.rb

This file was deleted.

0 comments on commit e50d61f

Please sign in to comment.