Skip to content

Commit

Permalink
removed left indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Nov 3, 2023
1 parent 796c6f9 commit 4679c8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/_task_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
}
}

.app-task-list__items-no-indentation {
@include govuk-font($size: 19);
@include govuk-responsive-margin(9, "bottom");
list-style: none;
padding-left: 0;
@include govuk-media-query($from: tablet) {
padding-left: govuk-spacing(0);
}
}

.app-task-list__items {
@include govuk-font($size: 19);
@include govuk-responsive-margin(9, "bottom");
Expand Down
2 changes: 1 addition & 1 deletion app/components/task_list/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= section[:title] %>
</h2>

<ul class="app-task-list__items">
<ul class="<%= section[:title].present? ? 'app-task-list__items' : 'app-task-list__items-no-indentation' %>">
<% section[:items].each do |item| %>
<li class="app-task-list__item">
<% status_id = "#{section[:number]}-#{section[:key]}-#{item[:key]}-status" %>
Expand Down

0 comments on commit 4679c8f

Please sign in to comment.