Skip to content

Paint the header phone number and icon in the text colour - #296

Merged
amjadr360 merged 2 commits into
mainfrom
fix/header-phone-icon-dark
Dec 3, 2026
Merged

amjadr360 merged 2 commits into
mainfrom
fix/header-phone-icon-dark

Conversation

@amjadr360

@amjadr360 amjadr360 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The header phone number and its icon now use the site's text colour instead of the brand colour. With a light brand colour, like the yellow in the Marigold palette, the number in the "Center nav with phone" header was nearly unreadable. The number now matches the menu links beside it, and the icon matches the number.

On the headers that sit dark over a full-screen hero, the phone number turns white but its icon kept its original colour, so an icon in the text colour would be dark on the dark header. The icon now turns white along with the number, the same way the site logo already does.

The phone-number header extra paints its icon as an image with a
duotone. Over a full-screen hero, a dark header turns the phone
number white, but that colour never reaches the image, so an icon in
the site's text colour would sit dark on the dark header.

The icon now gets the same white knockout the generated logo uses,
on the overlay header until it scrolls past the hero and on the
dark glass header throughout. The icon is a single colour on
transparency, which is what the knockout suits.
The "Center nav with phone" header painted its phone number in the
palette's primary colour and duotoned its icon to primary. Primary is
the brand fill, never checked as text, so a palette with a light
brand colour left the number unreadable: Marigold's yellow sits at
1.64:1 on its page, under the 4.5:1 that 18px text needs.

The number now takes foreground, the same as the menu links beside
it, and the icon the foreground-and-background duotone so it matches.
Both stay block attributes, so the editor's colour controls show them.
@amjadr360 amjadr360 changed the title Whiten the header phone icon over a dark hero Paint the header phone number and icon in the text colour Dec 2, 2026
@amjadr360
amjadr360 marked this pull request as ready for review December 3, 2026 12:09
@amjadr360
amjadr360 merged commit 071378a into main Dec 3, 2026
1 check passed
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.

1 participant