Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix govspeak legislative lists styles #4679

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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