Skip to content

Make nav buttons readable over dark content - #509

Merged
simonhamp merged 1 commit into
mainfrom
nav-button-contrast
Sep 10, 2026
Merged

Make nav buttons readable over dark content#509
simonhamp merged 1 commit into
mainfrom
nav-button-contrast

Conversation

@simonhamp

Copy link
Copy Markdown
Member

The Ultra, Masterclass and Build links in the desktop nav were tinted pills with a 10% background and coloured text. When the sticky nav blurs over something dark, like a blog post hero image, they lost almost all their contrast. They now use the same classes as the Mobile and Desktop dropdown buttons. That means they lose their orange, green and violet colours.

The Bifrost button no longer cycles through "Try Bifrost!", "Build", "Distribute" and "Ship". It just says "Bifrost", in the nav and in the mobile menu. I removed the GSAP timeline and hover handlers that ran the rotation, and kept the spinning gradient border. The label now has relative so it paints above the button's white inner layer. The GSAP transforms had been doing that by accident.

NavigationBarTest checks the button label and that the three links carry the Mobile dropdown's resting background classes. It reads those classes from the dropdown's Alpine :class binding, so restyling the dropdown will fail the test until the links are updated to match. Both tests fail against the old markup. I also checked the nav with screenshots in light and dark mode, at desktop width and in the mobile menu.

🤖 Generated with Claude Code

Ultra, Masterclass and Build now use the same pill as the Mobile and
Desktop dropdowns, so they keep their contrast when the sticky nav
floats over dark images. The Bifrost button just says Bifrost instead
of cycling through words.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@simonhamp
simonhamp marked this pull request as ready for review September 10, 2026 15:10
@simonhamp
simonhamp merged commit cb52764 into main Sep 10, 2026
3 checks passed
@simonhamp
simonhamp deleted the nav-button-contrast branch September 10, 2026 15:11
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