Skip to content

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented Sep 30, 2025

What

Set the default background colour of the inverse header component to light blue, and remove setting the inverse option which makes text white on the headings inside the default variant.

Make the html publication header variant the previous darker blue, and move the white text style to this variant.

Add a new inverse header black link style, and change the subtext option to be used with html publication header which is the only one currently using it on GOV.UK.

Why

A design decision was made to align the headers with new colour scheme; this was already on use on /browse. Additionally, it was decided that the HTML publications and CSV previews would continue to use the existing darker blue.

Visual Changes

From alphagov/frontend#5034

Before

Screenshot 2025-10-06 at 12 58 53

After

Screenshot 2025-10-06 at 13 02 38

Before

Screenshot 2025-10-06 at 13 00 50

After

Screenshot 2025-10-06 at 13 00 36

Before

Screenshot 2025-10-06 at 13 05 14

After (no difference)

Screenshot 2025-10-08 at 15 20 17

From alphagov/finder-frontend#3856

Before

Screenshot 2025-10-01 at 11 49 02

After

Screenshot 2025-10-01 at 11 48 49

From alphagov/collections#4233

Before

Screenshot 2025-10-08 at 18 33 09

After

Screenshot 2025-10-08 at 18 33 00

Before (Browse top level page template; no visual difference but now uses inverse header component)

Screenshot 2025-10-08 at 18 33 32

After

Screenshot 2025-10-08 at 18 33 44

Before (Browse second level page template; no visual difference but now uses inverse header component)

Screenshot 2025-10-08 at 18 33 58

After

Screenshot 2025-10-08 at 18 34 18

Before (Browse curated list template; no visual difference but now uses inverse header component)

Screenshot 2025-10-08 at 18 41 30

After

Screenshot 2025-10-08 at 18 41 21

Before (Browse A-Z list template; no visual difference but now uses inverse header component)

Screenshot 2025-10-08 at 18 41 01

After

Screenshot 2025-10-08 at 18 40 53

From alphagov/government-frontend#3860

Before

Screenshot 2025-10-08 at 16 13 55

After (no difference)

TBC

Fixes https://gov-uk.atlassian.net/jira/software/c/projects/NAV/boards/1422?selectedIssue=NAV-18210

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 September 30, 2025 16:22 Inactive
@hannalaakso hannalaakso force-pushed the update-inverse-header-with-new-brand-colour branch from d385c19 to 3cca62d Compare October 1, 2025 10:43
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 October 1, 2025 10:43 Inactive
@hannalaakso hannalaakso force-pushed the update-inverse-header-with-new-brand-colour branch from 3cca62d to d9167e1 Compare October 8, 2025 11:02
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 October 8, 2025 11:02 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 October 8, 2025 11:11 Inactive
@hannalaakso hannalaakso force-pushed the update-inverse-header-with-new-brand-colour branch from 6220554 to 97268e1 Compare October 8, 2025 16:36
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 October 8, 2025 16:36 Inactive
@hannalaakso hannalaakso force-pushed the update-inverse-header-with-new-brand-colour branch from 97268e1 to e1711f5 Compare October 8, 2025 16:43
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-5053 October 8, 2025 16:43 Inactive
Set the default background colour of inverse header to light blue. It will use the standard black text colour so remove setting the inverse option which makes text white on the headings inside the default variant.

Make the html publication header variant the previous darker blue, and move the white text style to this variant.
These will be used on the default light blue variant of the inverse header.
Subtext is currently only used by HTML publications on GOV.UK which use the darker blue Html publication header variant of the component. We're therefore moving the subtext to this variant as the white subtext can't be used with the default light blue inverse header.

We explain this in the documentation and ask developers to add a black subtext as an option to the default inverse header in the future if needed.
@hannalaakso hannalaakso force-pushed the update-inverse-header-with-new-brand-colour branch from e1711f5 to ea705d0 Compare October 8, 2025 16:49
@hannalaakso hannalaakso changed the title Update inverse header with new brand colour Implement redesigned inverse header Oct 8, 2025
@hannalaakso hannalaakso marked this pull request as ready for review October 8, 2025 17:50
@include govuk-font($size: 16, $line-height: 1.5);
}

.gem-c-inverse-header__link {
Copy link
Member Author

@hannalaakso hannalaakso Oct 8, 2025

Choose a reason for hiding this comment

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

Martin and I already discussed this change - the new class name proposed here is potentially unclear and/or doesn't align with the naming convention used for the inverse link styles (see example of the changed code here). Although we plan to rename the inverse header component at a later point at which point the new class name might more sense.

Will be good to get futher thoughts from Martin on this though 👀

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for jumping in a bit late on this. My only question is why we need the gem-c-inverse-header__link selector here, and whether we might instead have all hyperlinks within gem-c-inverse-header inherit color: govuk-colour("black");.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at this further, I’m guessing the reason is that otherwise we’d need to write CSS targeting the .govuk-link class and override the styles - or remove the govuk-link styles entirely and then recreate them just for this use case, which seems a bit unnecessary.

Copy link
Contributor

@jon-kirwan jon-kirwan left a comment

Choose a reason for hiding this comment

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

It looks good to me. I just have one question on the inverse link styles.

@include govuk-font($size: 16, $line-height: 1.5);
}

.gem-c-inverse-header__link {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for jumping in a bit late on this. My only question is why we need the gem-c-inverse-header__link selector here, and whether we might instead have all hyperlinks within gem-c-inverse-header inherit color: govuk-colour("black");.

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