Skip to content

Increase homepage sector cards from 3 to 4 - #446

Merged
jhancock532 merged 2 commits into
migration-2026from
chore/update-homepage-division-signpost-block
Jul 29, 2026
Merged

Increase homepage sector cards from 3 to 4#446
jhancock532 merged 2 commits into
migration-2026from
chore/update-homepage-division-signpost-block

Conversation

@jhancock532

@jhancock532 jhancock532 commented Jul 27, 2026

Copy link
Copy Markdown

There was no ticket for this work, context provided by Lily is as follows.

Summary
The homepage currently limits the sector cards component to a maximum of 3 items. As part of the new IA, we need to increase this to 4.

Background
We're removing the Wagtail CMS card and replacing the current three-card layout with four sectors:

  • Charity
  • Health
  • Public Sector
  • GLAM

At the moment, the card block in Wagtail has a hard limit of three items, preventing us from adding the fourth sector.

Acceptance criteria

  • Increase the maximum number of cards from 3 to 4.
  • Ensure the homepage layout supports four cards without breaking the design across desktop, tablet and mobile.

Description of Changes Made

  • Updated the DivisionSignpostBlock to support 4 items, breaking out of the grid container on desktop to give each card slightly more space to render.
  • Made adjustments to color theme variables so that the green card renders correctly (including focus outline color for green card button)
  • Tweaked the alignment of the arrow so that it aligns with the text in the card button.

How to Test

Add four cards to the homepage, and verify they render well across viewports.

Check out the pattern library component locally: http://localhost:8000/pattern-library/render-pattern/patterns/molecules/streamfield/blocks/division_signpost_block.html

Screenshots

Expand to see more

Light mode, with focus state, on desktop.

image

Dark mode, with focus state, on tablet - desktop.

image

Safari - external monitor

image

MR Checklist

  • Add a description of your pull request and instructions for the reviewer to verify your work.
  • If your pull request is for a specific ticket, link to it in the description.
  • Stay on point and keep it small so the merge request can be easily reviewed.
  • Tests and linting passes.

Unit tests

  • Added
  • Not required

Documentation

Browser testing

  • I have tested in the following browsers and environments (edit the list as required)
    • Latest version of Chrome on mac
    • Latest version of Firefox on mac
    • Latest version of Safari on mac
    • Safari on last two versions of iOS
    • Chrome on last two versions of Android
  • Not required

Data protection

  • Not relevant
  • This adds new sources of PII and documents it and modifies Birdbath processors accordingly

Light and dark mode

  • I have tested the changes in both light and dark mode
  • The change is not relevant to dark and light mode

Accessibility

  • Automated WCAG 2.1 tests pass
  • HTML validation passes
  • Manual WCAG 2.1 tests completed
  • I have tested in a screen reader
  • I have tested in high-contrast mode
  • Any animations removed for prefers-reduced-motion
  • Not required

Sustainability

  • Images are optimised and lazy-loading used where appropriate
  • SVGs have been optimised
  • Performance and transfer of data considered
  • If JavaScript is needed alternatives have been considered
  • Not required

Pattern library

  • The pattern library component for this template displays correctly, and does not break parent templates
  • The styleguide is updated if relevant
  • Changes are not relevant the pattern library

@jhancock532
jhancock532 force-pushed the chore/update-homepage-division-signpost-block branch from c5018ae to 72c95b0 Compare July 27, 2026 10:22
@jhancock532
jhancock532 marked this pull request as ready for review July 27, 2026 10:26
@jhancock532 jhancock532 changed the title Draft: Increase homepage sector cards from 3 to 4 Increase homepage sector cards from 3 to 4 Jul 27, 2026
@jhancock532
jhancock532 changed the base branch from main to migration-2026 July 29, 2026 09:33
Comment thread tbx/static_src/sass/components/_division-signpost.scss

@helenb helenb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought I had found a bug but it seemed to be related to missing images. I will approve but please could you complete the A11y tests from the PR checklist, and if time update the styleguide so that there are images displayed for the sector cards.

Comment thread tbx/static_src/sass/components/_division-signpost.scss
@jhancock532

Copy link
Copy Markdown
Author

Ran through the accessibility checks following docs/accessibility-testing.md, all items passed.

@jhancock532
jhancock532 merged commit 01286ef into migration-2026 Jul 29, 2026
8 checks passed
@jhancock532
jhancock532 deleted the chore/update-homepage-division-signpost-block branch July 29, 2026 14:40
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.

3 participants