Skip to content

De-duplicate styles for lists#2629

Merged
lfdebrux merged 1 commit intomainfrom
ldeb-app-lists
Mar 16, 2026
Merged

De-duplicate styles for lists#2629
lfdebrux merged 1 commit intomainfrom
ldeb-app-lists

Conversation

@lfdebrux
Copy link
Contributor

@lfdebrux lfdebrux commented Mar 16, 2026

What problem does this pull request solve?

We had styles in _app_memorandum_of_understanding and _app_lists that were very similar, this commit de-duplicates the code.

We use govuk-spacing(4) rather than 20px for the padding, as govuk-spacing(4) has the same dimension for desktop viewports but is also responsive for smaller viewports.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

We had styles in _app_memorandum_of_understanding and _app_lists that
were very similar, this commit de-duplicates the code.

We use `govuk-spacing(4)` rather than 20px for the padding, as
govuk-spacing(4) the same dimension for desktop viewports but also
responsive for smaller viewports, this also matches what is in
[_lists.scss in govuk-frontend][1].

[1]: https://github.com/alphagov/govuk-frontend/blob/5e14495c40ec61112d069da3e61c168e1ce40012/packages/govuk-frontend/src/govuk/core/_lists.scss
@sonarqubecloud
Copy link

@github-actions
Copy link

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2629.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

Copy link
Contributor

@DavidBiddle DavidBiddle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensible change, and the MOU pages look good on different screen sizes in the review app 🎉

@lfdebrux lfdebrux added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 394fa1e Mar 16, 2026
7 checks passed
@lfdebrux lfdebrux deleted the ldeb-app-lists branch March 16, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants