Skip to content

Commit

Permalink
Fix branding
Browse files Browse the repository at this point in the history
Moves the branding class to the document list item instead of the ul which may not always be rendered.
  • Loading branch information
Vanita Barrett committed Aug 9, 2018
1 parent 341f18c commit 31dae0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -11,10 +11,10 @@
%>
<% if items.any? %>
<% unless within_multitype_list %>
<ol class="gem-c-document-list<%= margin_bottom_class %><%= margin_top_class %> <%= brand_helper.brand_class %>">
<ol class="gem-c-document-list<%= margin_bottom_class %><%= margin_top_class %>">
<% end %>
<% items.each do |item| %>
<li class="gem-c-document-list__item<%= within_multitype_list_class %>">
<li class="gem-c-document-list__item<%= within_multitype_list_class %> <%= brand_helper.brand_class %>">
<%=
link_to(
item[:link][:text],
Expand Down
2 changes: 1 addition & 1 deletion spec/components/document_list_spec.rb
Expand Up @@ -149,7 +149,7 @@ def component_name
]
)

assert_select '.gem-c-document-list.brand--attorney-generals-office'
assert_select '.gem-c-document-list__item.brand--attorney-generals-office'
assert_select '.gem-c-document-list .gem-c-document-list__item-title.brand__color'
end

Expand Down

0 comments on commit 31dae0c

Please sign in to comment.