Skip to content

Commit

Permalink
Add an explicit class name to spans used for dashes
Browse files Browse the repository at this point in the history
This was previously missing from this component and is added to meet
our coding standards.
  • Loading branch information
matthillco committed Oct 16, 2024
1 parent b51dd71 commit a67fa01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -81,7 +81,7 @@
padding: govuk-spacing(2) 0;
margin: 0;

& span::before {
& .gem-c-contents-list__list-item-dash::before {
display: none;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<% index_link = 1 unless disable_ga4 %>
<% contents.each do |contents_item| %>
<li class="<%= cl_helper.list_item_classes(contents_item, false) %>" <%= "aria-current=true" if contents_item[:active] %>>
<span aria-hidden="true"></span>
<span class="gem-c-contents-list__list-item-dash" aria-hidden="true"></span>
<% 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]
Expand Down

0 comments on commit a67fa01

Please sign in to comment.