diff --git a/app/views/content_items/_attachments.html.erb b/app/views/content_items/_attachments.html.erb index 61b1f1cce..851bfff45 100644 --- a/app/views/content_items/_attachments.html.erb +++ b/app/views/content_items/_attachments.html.erb @@ -10,14 +10,16 @@ } do %> <%= sanitize(legacy_pre_rendered_documents, { attributes: %w(alt class href id src data-module data-track-category data-track-action data-track-label data-track-options data-details-track-click), - tags: %w(a details div h2 img p section span summary), + tags: %w(a details div h2 h3 img p section span summary), }) %> <% end %> <% else %> <% attachments.each do |attachment_id| %>
- <%= render 'govuk_publishing_components/components/attachment', - attachment: @content_item.attachment_details(attachment_id) %> + <%= render 'govuk_publishing_components/components/attachment', { + heading_level: 3, + attachment: @content_item.attachment_details(attachment_id) + } %>
<% end %> <% end %>