From 6fb66a669acb68d81bb0ffb0d7da07a73373d4cd Mon Sep 17 00:00:00 2001 From: Hanna Laakso Date: Tue, 12 Sep 2023 11:04:17 +0100 Subject: [PATCH] Wrap alert status in govspeak The alert status copy uses the abbreviation markup as recommended by the GOV.UK styleguide. Wrap the alerts in govspeak to apply the govspeak styling for acronyms. --- app/views/content_items/travel_advice.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index 7bd42a6219..04e6ded4d1 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -16,13 +16,15 @@
<%= render 'govuk_publishing_components/components/title', @content_item.title_and_context %> - <% @content_item.alert_status.each do |text| %> - <%= render "govuk_publishing_components/components/warning_text", { - text: text % {:country => @content_item.country_name - } - } %> + <%= render "govuk_publishing_components/components/govspeak", { + } do %> + <% @content_item.alert_status.each do |text| %> + <%= render "govuk_publishing_components/components/warning_text", { + text: text % {:country => @content_item.country_name} + } %> + <% end %> <% end %> - +