Skip to content

Commit

Permalink
Adjust vertical spacing for nested lists
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieroberto committed Jun 8, 2024
1 parent bae0459 commit be24ddf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/styles/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
list-style-type: none;
margin-top: 0;
padding-left: 0;

// Add a top margin and remove bottom margin for nested lists
%nhsuk-list {
@include nhsuk-responsive-margin(2, "top");
margin-bottom: 0;
}
}

%nhsuk-list > li {
Expand Down

0 comments on commit be24ddf

Please sign in to comment.