diff --git a/app/presenters/document_collection_presenter.rb b/app/presenters/document_collection_presenter.rb index b8901e3e7..e34f39eda 100644 --- a/app/presenters/document_collection_presenter.rb +++ b/app/presenters/document_collection_presenter.rb @@ -51,7 +51,8 @@ def group_document_links(group, group_index) def group_heading(group) title = group["title"] - content_tag :h3, title, class: "group-title", id: group_title_id(title) + heading_level = show_contents_list? ? :h3 : :h2 + content_tag heading_level, title, class: "group-title", id: group_title_id(title) end private