diff --git a/app/views/govuk_publishing_components/components/_document_list.html.erb b/app/views/govuk_publishing_components/components/_document_list.html.erb index 3d3703153f..5d8eba31e8 100644 --- a/app/views/govuk_publishing_components/components/_document_list.html.erb +++ b/app/views/govuk_publishing_components/components/_document_list.html.erb @@ -11,10 +11,10 @@ %> <% if items.any? %> <% unless within_multitype_list %> -
    +
      <% end %> <% items.each do |item| %> -
    1. +
    2. <%= link_to( item[:link][:text], diff --git a/spec/components/document_list_spec.rb b/spec/components/document_list_spec.rb index e75d84634d..416857f3d8 100644 --- a/spec/components/document_list_spec.rb +++ b/spec/components/document_list_spec.rb @@ -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