Repository navigation
Paint the header phone number and icon in the text colour - #296
Merged
Merged
Conversation
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
marked this pull request as ready for review
December 3, 2026 12:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.