From b9a68cf1dec0ea80c7b655c631b484ae63036dd7 Mon Sep 17 00:00:00 2001 From: Hanna Laakso Date: Wed, 20 Sep 2023 16:18:54 +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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index 961180b1ab..dd3f49549d 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -16,11 +16,14 @@
<%= 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 %>