Skip to content

Make Moon icon color dynamic in Navbar#712

Open
firoziya wants to merge 1 commit into
GitMetricsLab:mainfrom
firoziya:patch-3
Open

Make Moon icon color dynamic in Navbar#712
firoziya wants to merge 1 commit into
GitMetricsLab:mainfrom
firoziya:patch-3

Conversation

@firoziya
Copy link
Copy Markdown
Contributor

@firoziya firoziya commented Jun 4, 2026

Related Issue

Fix

  • Mobile Light Mode (Moon icon visible)

Description

This PR addresses two UI/UX issues reported by users:

1. Dark Mode Icon Not Visible on Mobile Screens

Problem: In the mobile navigation menu, the moon icon had text-white class which made it invisible on light backgrounds.


How Has This Been Tested?

Test Environment:

  • Browser: Google Chrome (Version 120+)
  • Devices: Desktop (1920x1080), Mobile (iPhone 12, Pixel 5 emulation)
  • Themes: Light mode & Dark mode

Screenshots

Before Fix - Mobile Light Mode (Moon icon invisible)

image

After Fix - Mobile Light Mode (Moon icon visible)

image

Code Changes Summary

File 1: src/components/Navbar.tsx

- <Moon className="h-5 w-5 text-white" />
+ <Moon className="h-5 w-5 text-slate-900 dark:text-white" />

Updated Moon icon to have dynamic color based on mode.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 4, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit 1442e35
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a2160448d2c200009f25071
😎 Deploy Preview https://deploy-preview-712--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2026

Warning

Review limit reached

@firoziya, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 37 minutes and 49 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dfefab8d-ef0b-43e5-ad20-5ed50bde16e6

📥 Commits

Reviewing files that changed from the base of the PR and between 53f820b and 1442e35.

📒 Files selected for processing (1)
  • src/components/Navbar.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Dark Mode button visible on mobile screen

1 participant