Apply global GOV.UK mobile system styles - #261
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e834aeb40d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Deploying researchops with
|
| Latest commit: |
7749737
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7af7760a.researchops.pages.dev |
| Branch Preview URL: | https://fix-govuk-mobile-system-styl.researchops.pages.dev |
|
Converted to draft and retained as evidence. Decision: this PR showed that continuing to patch the hand-built GOV.UK imitation layer is brittle. The next piece of work will move to a proper GOV.UK Frontend integration spike using the official package, Sass pipeline and eventually Nunjucks/macros where appropriate. Do not merge this PR as a production styling fix unless it is deliberately revived after the official integration path has been assessed. |
Summary
Applies global GOV.UK Design System aligned mobile refinements through existing shared stylesheets.
This supersedes PR #260 and avoids separate mobile-only stylesheets or account-page scoped styling.
Changes
GOV.UK Design System alignment
Codex review handling
The Codex P1 comment was legitimate. The mobile override now resets the full header and service-navigation margins with
margin: 0, and the footer usesmargin: 48px 0 0, so desktop negative top and bottom margins no longer clip the mobile page chrome.The review thread has been replied to and resolved.
Trace
docs/agent-audit/reasoning/2026/05/20/govuk-mobile-system-styles.mddocs/agent-audit/reasoning/2026/05/20/govuk-mobile-system-styles.jsonValidation
CI passed on
774973733171b0cc7428af582ecd1ec2a82253c8.Changed-file verification
Changed files: 7
.agent-operating-model/bundles/govuk-design-system/references/govuk-design-system-reference.xmlpublic/css/govuk/govuk-page-chrome.csspublic/css/govuk/govuk-header-service-brand.csspublic/css/govuk/govuk-typography.csstests/govuk-mobile-page-chrome-route-state.test.jsdocs/agent-audit/reasoning/2026/05/20/govuk-mobile-system-styles.mddocs/agent-audit/reasoning/2026/05/20/govuk-mobile-system-styles.json