Skip to content

fix(web): match footer font size to legacy CaTH (#729) - #766

Merged
junaidiqbalmoj merged 3 commits into
masterfrom
vibe-729
Jul 3, 2026
Merged

fix(web): match footer font size to legacy CaTH (#729)#766
junaidiqbalmoj merged 3 commits into
masterfrom
vibe-729

Conversation

@alao-daniel

@alao-daniel alao-daniel commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The AI CaTH footer rendered larger than OG CaTH because govuk-frontend v6 bumped .govuk-footer from typography size 16 to 19 during the GDS rebrand.
  • Restores size 16 (16px / line-height 20px at all breakpoints) using the GOV.UK typography scale (govuk-font-size($size: 16)), not an arbitrary px value.
  • Single global rule in apps/web/src/assets/css/web.scss; footer is a shared partial so the fix applies site-wide. Only font-size/line-height are set — existing copyright/licence/display rules untouched.

Test plan

  • yarn build — SCSS compiles; compiled CSS confirms .govuk-footer{font-size:1rem;line-height:1.25} overrides the framework's 19px
  • yarn lint — clean (530 files, no fixes)
  • yarn test — 164 files, 1688 passed / 3 skipped
  • Coverage > 80% — statements 95.73%, branches 83.23%, functions 94.68%, lines 95.78%
  • TypeScript — tsc --noEmit clean
  • Manual visual check: footer is 16px on desktop and mobile, matching OG CaTH

Closes #729

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Restored the GovUK footer typography to the legacy scale (including matching the expected 16px desktop size) and reset footer link colours to the near-black styling, while leaving focus styling unchanged.
  • Documentation
    • Added ticket materials (issue notes, implementation plan, and checklist) describing the footer font-size alignment, acceptance criteria, and verification steps.

govuk-frontend v6 bumped the footer from size 16 to 19 as part of the
GDS rebrand, making the AI CaTH footer larger than OG CaTH. Restore
size 16 (16px at all breakpoints) via the GOV.UK typography scale so
the footer matches the legacy service.

Closes #729

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@junaidiqbalmoj, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 26 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 07516bbe-099a-4403-9545-30ca0dc61c7b

📥 Commits

Reviewing files that changed from the base of the PR and between 5ee7b9e and 7d31c53.

📒 Files selected for processing (1)
  • apps/web/src/assets/css/web.scss
📝 Walkthrough

Walkthrough

Updates footer styling to restore legacy size and colour in web.scss, and adds ticket documentation for issue #729 covering the change, plan, and verification steps.

Changes

Footer Font Size Fix

Layer / File(s) Summary
Footer typography and colour overrides
apps/web/src/assets/css/web.scss
Restores .govuk-footer to 16px and sets the legacy footer text colour, then overrides .govuk-footer__link pseudo-class states to keep links near-black while preserving focus styling.
Ticket documentation: ticket, plan, and checklist
docs/tickets/729/ticket.md, docs/tickets/729/plan.md, docs/tickets/729/checklist.md
Adds the issue ticket, implementation plan, acceptance criteria, and verification checklist for the footer typography change.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The PR also resets footer link colours, which are not part of the linked issue about font size. Remove the footer colour overrides or separate them into another change if they are intentionally required.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: matching the web footer font size to legacy CaTH.
Linked Issues check ✅ Passed The footer font-size override satisfies [#729] by making the AI CaTH footer match OG CaTH.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch vibe-729

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 21bb069b-89d5-4a54-b5bc-32c98dc5c43d

📥 Commits

Reviewing files that changed from the base of the PR and between 5a364d0 and 3a9eb37.

📒 Files selected for processing (4)
  • apps/web/src/assets/css/web.scss
  • docs/tickets/729/checklist.md
  • docs/tickets/729/plan.md
  • docs/tickets/729/ticket.md

Comment thread docs/tickets/729/plan.md
Comment on lines +15 to +19
- **AC1: Footer font size matches OG CaTH** — Override `.govuk-footer` to use the GOV.UK 16px responsive typography scale (`govuk-typography-responsive($size: 16)`), matching OG CaTH's 16px desktop / 14px mobile.
- Files: `apps/web/src/assets/css/web.scss`

- **AC2: Uses GOV.UK typography scale, not arbitrary value** — Use the `govuk-frontend` `govuk-typography-responsive` mixin (size 16) rather than a hardcoded `px` value, so it stays on the Design System scale and remains responsive.
- Files: `apps/web/src/assets/css/web.scss`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Align the plan wording with the implemented mixin and behaviour.

The plan still describes govuk-typography-responsive with a 14px mobile step, but the implementation/checklist use govuk-font-size($size: 16). Please update this section so future readers are not misled.

Also applies to: 27-32

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

🎭 Playwright E2E Test Results

84 tests   52 ✅  6m 28s ⏱️
33 suites  32 💤
 1 files     0 ❌

Results for commit 7d31c53.

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment Successful 🚀

Your preview environment is ready:

The environment will be automatically cleaned up when this PR is closed.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e5bd54dc-f308-4c0d-8fc2-cedcc3dfb84f

📥 Commits

Reviewing files that changed from the base of the PR and between 3a9eb37 and 5ee7b9e.

📒 Files selected for processing (1)
  • apps/web/src/assets/css/web.scss

Comment on lines +33 to +38
//
// The GDS rebrand also lightens the footer text/link colour. Restore the
// legacy near-black text colour (#0b0c0c) for the footer and its links.
.govuk-footer {
@include index.govuk-font-size($size: 16);
color: index.$govuk-text-colour;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the Stylelint failures in this footer block.

Line 33 adds an empty // comment, and Line 38 needs a blank line after the mixin call. This currently violates the SCSS lint rules reported by static analysis.

Suggested fix
-//
 // The GDS rebrand also lightens the footer text/link colour. Restore the
 // legacy near-black text colour (`#0b0c0c`) for the footer and its links.
 .govuk-footer {
   `@include` index.govuk-font-size($size: 16);
+
   color: index.$govuk-text-colour;
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
//
// The GDS rebrand also lightens the footer text/link colour. Restore the
// legacy near-black text colour (#0b0c0c) for the footer and its links.
.govuk-footer {
@include index.govuk-font-size($size: 16);
color: index.$govuk-text-colour;
// The GDS rebrand also lightens the footer text/link colour. Restore the
// legacy near-black text colour (`#0b0c0c`) for the footer and its links.
.govuk-footer {
`@include` index.govuk-font-size($size: 16);
color: index.$govuk-text-colour;
🧰 Tools
🪛 Stylelint (17.14.0)

[error] 33-33: Unexpected empty comment (scss/comment-no-empty)

(scss/comment-no-empty)


[error] 38-38: Expected empty line before declaration (declaration-empty-line-before)

(declaration-empty-line-before)

Source: Linters/SAST tools

@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment Successful 🚀

Your preview environment is ready:

The environment will be automatically cleaned up when this PR is closed.

@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Preview Deployment Successful 🚀

Your preview environment is ready:

The environment will be automatically cleaned up when this PR is closed.

@junaidiqbalmoj
junaidiqbalmoj merged commit f247aa2 into master Jul 3, 2026
26 checks passed
hmctsclaudecode Bot pushed a commit that referenced this pull request Jul 9, 2026
10 STATUS + IMPL changes (closed issue + merged closing PR → verified):
  REQ-0078 (#301): implemented → verified (PR #458)
  REQ-0105 (#428): in_progress  → verified (PR #749)
  REQ-0106 (#429): approved     → verified (PR #761)
  REQ-0107 (#431): implemented → verified (PR #701)
  REQ-0108 (#434): approved     → verified (PR #772)
  REQ-0109 (#436): implemented → verified (PR #727)
  REQ-0112 (#467): implemented → verified (PR #670)
  REQ-0124 (#563): approved     → verified (PR #782)
  REQ-0135 (#569): in_progress  → verified (PR #748)
  REQ-0137 (#729): approved     → verified (PR #766)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the footer font size the same as in OG CaTH

3 participants