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| %>