Skip to content

Commit

Permalink
Merge pull request #4679 from alphagov/fix-legislative-lists
Browse files Browse the repository at this point in the history
Fix govspeak legislative lists styles
  • Loading branch information
andysellick authored Mar 5, 2025
2 parents 222cb59 + 34e47f2 commit 12ba4d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

## Unreleased

* Fix govspeak legislative lists styles ([PR #4679](https://github.com/alphagov/govuk_publishing_components/pull/4679))
* Adjust attachment component spacing ([PR #4669](https://github.com/alphagov/govuk_publishing_components/pull/4669))
* Add custom css exclude list to Asset Helper ([PR #4656](https://github.com/alphagov/govuk_publishing_components/pull/4656))
* Rubocop is now configured for rails and rspec defaults ([PR #4660](https://github.com/alphagov/govuk_publishing_components/pull/4660))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@
.legislative-list {
list-style: none;
margin: 0 0 govuk-spacing(4) 0;

ol {
margin: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(6);
list-style: none;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -775,13 +775,16 @@ examples:
<li>three</li>
</ul>
legislative_lists:
description: Example taken from [GOV.UK Immigration rules](https://www.gov.uk/guidance/immigration-rules/immigration-rules-introduction)
data:
block: |
<h2>ordered list:</h2>
<ol class="legislative-list">
<li>one</li>
<li>two</li>
<li>three</li>
<li>6.2. In these rules:
<ol>
<li>(a) references to primary and secondary legislation refers to that legislation as amended from time to time; and</li>
<li>(b) unless the contrary intention appears, the following definitions apply:</li>
</ol>
</li>
</ol>
nested_lists:
data:
Expand Down

0 comments on commit 12ba4d6

Please sign in to comment.