<% add_gem_component_stylesheet("document-list") items ||= [] classes = "gem-c-document-list" classes << " gem-c-document-list--top-margin" if local_assigns[:margin_top] classes << " gem-c-document-list--bottom-margin" if local_assigns[:margin_bottom] classes << " gem-c-document-list--no-underline" if local_assigns[:remove_underline] classes << " gem-c-document-list--no-top-border" if local_assigns[:remove_top_border] classes << " gem-c-document-list--no-top-border-first-child" if local_assigns[:remove_top_border_from_first_child] within_multitype_list ||= false within_multitype_list_class = " gem-c-document-list__multi-list" if within_multitype_list title_with_context_class = " gem-c-document-list__item-title--context" brand ||= false brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand) %> <% if items.any? %> <% unless within_multitype_list %> <% end %> <% end %>