Skip to content

Commit

Permalink
Wrap alert status in govspeak
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hannalaakso committed Sep 20, 2023
1 parent e496d8f commit b9a68cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/views/content_items/travel_advice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
<div class="govuk-grid-column-two-thirds travel-advice__header">
<%= 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 %>

<aside class="part-navigation-container" role="complementary">
Expand Down

0 comments on commit b9a68cf

Please sign in to comment.