fix: make ScrollProgressBar track visible in dark mode using Tailwind… - #483
Conversation
|
@Nsanjayboruds PR is ready for review! 🎉 Here's what was fixed:
Could you please:
Thank you! 🙏 |
|
@ruhelamahi7-code please provide a screen recording |
|
@Nsanjayboruds Since the live site is currently down due to missing Firebase env variables on Render, I created a visual demo to show the ScrollProgressBar fix in dark mode. BEFORE — The track background AFTER — The track now uses
Hope this clearly demonstrates the fix! 🙏 Also, I raised issue #484 — [ENHANCEMENT]: Replace window.confirm() in Cart with a styled confirmation modal — and would love to work on it. I would love to work on that as well since I'm already familiar with the codebase from PR #481 and PR #483. Could you please assign it to me? 🙏 |

Summary
Fixed the ScrollProgressBar component where the track background was invisible in dark mode due to hardcoded inline styles. Migrated all styles to Tailwind CSS classes for proper dark/light mode support.
Description
What changed:
background: rgba(0,0,0,0.08)on the track — invisible on dark backgroundsbg-black/10 dark:bg-white/10— visible in both light and dark modeScrollProgressBar.cssimport and deleted the filebg-gradient-to-r from-blue-500 to-purple-500Why:
The track background was completely invisible in dark mode (the default theme), making the progress bar look broken for all dark mode users.
Related Issue
Fixes #482
Type of Change
Checklist
UI Evidence
Before:
Track background invisible in dark mode — only the fill portion was visible when scrolling.
After:
Track background now clearly visible in both light (
bg-black/10) and dark (bg-white/10) modes. The progress fill uses Tailwind gradient classes matching the app's design.