Skip to content

improve theme toggle visibility in light mode - #316

Open
DarshanKudrigi wants to merge 3 commits into
OpenScienceLabs:mainfrom
DarshanKudrigi:fix/theme-toggle-visibility
Open

DarshanKudrigi wants to merge 3 commits into
OpenScienceLabs:mainfrom
DarshanKudrigi:fix/theme-toggle-visibility

Conversation

@DarshanKudrigi

Copy link
Copy Markdown

Description

Summary

Fixes the theme toggle visibility issue reported in [Issue #315](#315).

Problem

The theme toggle button was difficult to see in light mode because its white appearance blended into the light background.

Changes Made

  • Improved the visibility and contrast of the theme toggle in light mode.
  • Preserved the existing dark-mode appearance and theme-switching functionality.
  • Kept the implementation minimal without changing the project structure or unrelated components.

Testing

  • Verified toggle visibility in light mode.
  • Verified toggle visibility in dark mode.
  • Confirmed theme switching works correctly.
  • Checked for unintended changes to other UI elements.
  • Ran the relevant project checks.

Related Issue

Closes #315

Screenshots

Before

The theme toggle was difficult to see in light mode because the white button blended into the background.

Screenshot 2026-10-12 203123 Screenshot 2026-10-12 203117

After

The theme toggle is now clearly visible in light mode while preserving its appearance and functionality in dark mode.

The attached screenshots demonstrate the behaviour before and after the fix in both themes.
Screenshot 2026-10-14 234500
Screenshot 2026-10-14 234449

@netlify

netlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for opensciencelabsweb failed.

Name Link
🔨 Latest commit 3766600
🔍 Latest deploy log https://app.netlify.com/projects/opensciencelabsweb/deploys/6acfc9cab99d3c29ce1525f6

This branch has not been deployed

No deployments
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.

[Bug]: Theme toggle has insufficient contrast in dark and light modes

1 participant