Skip to content

Fix mobile nav toggle visibility on dark hero backgrounds#381

Merged
JakeSCahill merged 2 commits into
mainfrom
fix/mobile-nav-toggle-visibility
May 27, 2026
Merged

Fix mobile nav toggle visibility on dark hero backgrounds#381
JakeSCahill merged 2 commits into
mainfrom
fix/mobile-nav-toggle-visibility

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

@JakeSCahill JakeSCahill commented May 27, 2026

Summary

Fix the mobile navigation toggle (hamburger menu) icon being nearly invisible on landing pages with dark hero backgrounds in Brave browser and other browsers.

Problem

The nav toggle icon uses a dark color (#222) that doesn't contrast against the dark gradient backgrounds on:

  • Data Platform landing page
  • Labs home page
  • Component home pages (Self-managed, Cloud, Connect)
  • Main home page

Solution

Apply the same CSS filter: invert() used in dark mode to these specific landing pages, making the icon white and visible against dark backgrounds.

Files Changed

File Change
src/css/data-platform.css Add nav-toggle invert filter
src/css/labs-home.css Add nav-toggle invert filter
src/css/component-home-v3.css Add nav-toggle invert filter
src/css/home.css Add nav-toggle invert filter
preview-src/ui-model.yml Add Widget Test page to dev tools nav

Preview Links

Test on mobile viewport (< 1024px width) or resize browser:

Page Link
Data Platform Landing https://deploy-preview-381--docs-ui.netlify.app/home
Labs Home https://deploy-preview-381--docs-ui.netlify.app/labs-home

Test Plan

  • Open Data Platform landing on mobile (or resize browser < 1024px)
  • Verify nav toggle icon is visible (white) against dark hero
  • Test on Labs, Self-managed, Cloud, and Connect landing pages
  • Test in Brave browser specifically

The nav toggle (hamburger menu) icon was nearly invisible on landing pages
with dark hero backgrounds (data-platform, labs, component-home, home).
The icon uses a dark color (#222) that doesn't contrast against the dark
gradient backgrounds.

Fix by applying the same invert filter used in dark mode to these specific
landing pages, making the icon white and visible.

Also add Widget Test page to preview nav under "Dev Tools" for easy access
during development.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit 7b54d18
🔍 Latest deploy log https://app.netlify.com/projects/docs-ui/deploys/6a16f064558b5e00089f8f63
😎 Deploy Preview https://deploy-preview-381--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 32
Accessibility: 89
Best Practices: 100
SEO: 89
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b986b943-d00d-4322-9a22-4f2cf129505f

📥 Commits

Reviewing files that changed from the base of the PR and between b2fda81 and 7b54d18.

📒 Files selected for processing (5)
  • preview-src/ui-model.yml
  • src/css/component-home-v3.css
  • src/css/data-platform.css
  • src/css/home.css
  • src/css/labs-home.css

Disabled knowledge base sources:

  • Jira integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Walkthrough

This PR updates the navigation configuration in the Dev Tools menu by replacing the "Sticky Footer Test" link with a new "Widget Test (Bump.sh)" pointing to /_/widget-test.html. Concurrently, it applies CSS filter-based color inversion styling to the mobile navigation toggle (.nav-toggle) across four page templates—component-home-v3, data-platform, home, and labs-home—to ensure the toggle renders as white and remains visible when positioned over dark hero backgrounds.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • paulohtb6
  • Feediver1
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/mobile-nav-toggle-visibility

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/css/component-home-v3.css

Parsing error: Unexpected token .

src/css/data-platform.css

Parsing error: Unexpected token .

src/css/home.css

Parsing error: Unexpected token {

  • 1 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JakeSCahill JakeSCahill requested a review from a team May 27, 2026 12:27
Copy link
Copy Markdown
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

Review

Approving — small, focused, low-risk visibility fix. Deploy preview confirms it works on the affected pages.

Minor

  1. DRY — the same filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(105%) contrast(101%) is repeated in four files (component-home-v3.css, data-platform.css, home.css, labs-home.css). Consider extracting to a utility class like .nav-toggle--inverted or a CSS variable so a future tweak happens in one place. Not blocking.
  2. Merge order with #380preview-src/ui-model.yml adds a "Dev Tools → Widget Test (Bump.sh)" entry pointing to /_/widget-test.html, which is created in PR #380. If this PR lands first, the preview nav link will 404 until #380 merges. Coordinate the merge order (or move the nav entry into #380).

What works well

  • Scope matches the description exactly.
  • Targets only the affected landing pages via existing body/wrapper classes — no global side effects.
  • All checks green including Netlify deploy preview.

@JakeSCahill JakeSCahill merged commit 00ff92e into main May 27, 2026
3 of 6 checks passed
@JakeSCahill JakeSCahill deleted the fix/mobile-nav-toggle-visibility branch May 27, 2026 13:24
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.

2 participants