Skip to content

Copy GOV.UK change to use masks for footer image - #303

Merged
simonwo merged 1 commit into
mainfrom
813-fix-rd-logo
Sep 1, 2025
Merged

simonwo merged 1 commit into
mainfrom
813-fix-rd-logo

Conversation

@simonwo

@simonwo simonwo commented Sep 1, 2025

Copy link
Copy Markdown
Member

In alphagov/govuk-frontend@4c8d91a GOV.UK Frontend moved to using the Royal Arms as a mask, which allows it to copy the current colour of the text, which in theory is more accessible.

So to get our own logo to display there, we need to copy that decision by overriding the mask image in browsers that support it, and setting the background on the ::before psudeo-element instead of the link itself.

In alphagov/govuk-frontend@4c8d91a
GOV.UK Frontend moved to using the Royal Arms as a mask, which allows
it to copy the current colour of the text, which in theory is more
accessible.

So to get our own logo to display there, we need to copy that decision
by overriding the mask image in browsers that support it, and setting
the background on the ::before psudeo-element instead of the link
itself.
@simonwo
simonwo requested a review from rossjones September 1, 2025 10:12
@simonwo simonwo self-assigned this Sep 1, 2025

@rossjones rossjones 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.

Tested manually, looks good but I don't have any browsers old enough to not support mask.

@simonwo
simonwo merged commit 7988084 into main Sep 1, 2025
8 of 9 checks passed
@simonwo
simonwo deleted the 813-fix-rd-logo branch September 1, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants