diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f62ce1fe..8f4fb42dfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * Control when checkboxes change event sends Google Analytics tracking info (PR #801) * Updates govuk-frontend from 2.5.1 to 2.9.0 (PR #794) * Adds small form option to subscription component (PR #803) +* Suppress subscription components heading (PR #804) ## 16.8.0 diff --git a/app/views/govuk_publishing_components/components/_subscription-links.html.erb b/app/views/govuk_publishing_components/components/_subscription-links.html.erb index 27374e2ed9..ffe5a559e5 100644 --- a/app/views/govuk_publishing_components/components/_subscription-links.html.erb +++ b/app/views/govuk_publishing_components/components/_subscription-links.html.erb @@ -11,10 +11,13 @@ css_classes << (shared_helper.get_margin_bottom) unless local_assigns[:margin_bottom] == 0 css_classes << brand_helper.brand_class data = {"module": "gem-toggle"} if sl_helper.feed_link_box_value + hide_heading ||= false %> <% if sl_helper.component_data_is_valid? %> <%= tag.section class: css_classes, data: data do %> - + <% unless hide_heading %> + + <% end %>