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 14, 2018
1 parent adb1084 commit 0bbe2e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 0bbe2e1

Please sign in to comment.