diff --git a/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss b/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss index 1483d228c4..4ccbd6337d 100644 --- a/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +++ b/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss @@ -50,7 +50,7 @@ padding-left: $contents-spacing; padding-right: $contents-spacing; - & span::before { + & .gem-c-contents-list__list-item-dash::before { content: "—"; position: absolute; left: 0; @@ -81,7 +81,7 @@ padding: govuk-spacing(2) 0; margin: 0; - & span::before { + & .gem-c-contents-list__list-item-dash::before { display: none; } } diff --git a/app/views/govuk_publishing_components/components/_contents_list.html.erb b/app/views/govuk_publishing_components/components/_contents_list.html.erb index b283e3b60c..6dba006c9c 100644 --- a/app/views/govuk_publishing_components/components/_contents_list.html.erb +++ b/app/views/govuk_publishing_components/components/_contents_list.html.erb @@ -48,7 +48,7 @@ <% index_link = 1 unless disable_ga4 %> <% contents.each do |contents_item| %>
  • > - + <% link_text = format_numbers ? cl_helper.wrap_numbers_with_spans(contents_item[:text]) : cl_helper.clean_string(contents_item[:text]) unless disable_ga4 ga4_data[:event_name] = cl_helper.get_ga4_event_name(contents_item[:href]) if contents_item[:href]