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 12, 2023
1 parent a11fdde commit 6fb66a6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/views/content_items/travel_advice.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
<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">
<%= render "govuk_publishing_components/components/contents_list", aria: { label: t("travel_advice.pages") }, contents: @content_item.part_link_elements, underline_links: true, ga4_tracking: true %>

Expand Down

0 comments on commit 6fb66a6

Please sign in to comment.