Skip to content

Commit

Permalink
Merge pull request #2140 from alphagov/fix-container-misalignment
Browse files Browse the repository at this point in the history
Fix brexit links partial alignment
  • Loading branch information
alex-ju authored Jun 10, 2021
2 parents e9c40f6 + a3a2f58 commit a94db46
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions app/views/content_items/detailed_guide/_brexit_links.html.erb
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
<div class="govuk-grid-row">
<% @content_item.title_and_link_sections.each do |section| %>
<% if section[:title].present? %>
<%= render "govuk_publishing_components/components/heading", {
text: section[:title],
heading_level: 2,
font_size: "m",
margin_bottom: 6,
<% @content_item.title_and_link_sections.each do |section| %>
<% if section[:title].present? %>
<%= render "govuk_publishing_components/components/heading", {
text: section[:title],
heading_level: 2,
font_size: "m",
margin_bottom: 6,
} %>
<% end %>
<% if section[:links].present? %>
<% track_category = brexit_link[:track_category] %>
<% links = section[:links].map do |link|
link_to(link[:text], link[:path], class: "govuk-link", data: {
track_action: link[:path],
track_category: track_category,
track_label: section[:title] || "",
module: 'gem-track-click',
})
end
%>
<%= render "govuk_publishing_components/components/list", {
items: links,
visible_counters: true,
} %>
<% end %>
<% if section[:links].present? %>
<% track_category = brexit_link[:track_category] %>
<% links = section[:links].map do |link|
link_to(link[:text], link[:path], class: "govuk-link", data: {
track_action: link[:path],
track_category: track_category,
track_label: section[:title] || "",
module: 'gem-track-click',
})
end
%>
<%= render "govuk_publishing_components/components/list", {
items: links,
visible_counters: true,
} %>
<% end %>
<% end %>
</div>
<% end %>

0 comments on commit a94db46

Please sign in to comment.