Skip to content

Commit

Permalink
Fix brexit links partial alignment
Browse files Browse the repository at this point in the history
This partial is already rendered in a `govuk-grid-row` so adding an extra one here is causing a container misalignment.
  • Loading branch information
alex-ju committed Jun 10, 2021
1 parent e9c40f6 commit a3a2f58
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 a3a2f58

Please sign in to comment.