From 7c73b927552836ac818f2c26c516d3f2cdbfa406 Mon Sep 17 00:00:00 2001 From: yatharthchopra2424 Date: Thu, 23 Apr 2026 22:11:47 +0530 Subject: [PATCH] feat: standardise dropdown UI and fix dark-mode visibility issues - Implemented '.gc-select' utility in globals.css with custom chevron and dark-themed options list. - Added browser autofill overrides to prevent white-background obscuring text in dark mode. - Applied the new dropdown styling to the Onboarding page, Company Dashboard scheduler, and GridCastApp monolith. - Resolved 'non-visible text' issue for dropdown selectors across the platform. --- .../app/(protected)/company/page.tsx | 2 +- .../app/(protected)/onboarding/page.tsx | 6 ++++- gridcast-react/app/globals.css | 25 +++++++++++++++++++ gridcast-react/components/GridCastApp.tsx | 12 ++++----- 4 files changed, 37 insertions(+), 8 deletions(-) diff --git a/gridcast-react/app/(protected)/company/page.tsx b/gridcast-react/app/(protected)/company/page.tsx index 5060084..f4eec33 100644 --- a/gridcast-react/app/(protected)/company/page.tsx +++ b/gridcast-react/app/(protected)/company/page.tsx @@ -1109,7 +1109,7 @@ export default function CompanyDashboard() { update("industry", e.target.value)} @@ -296,6 +297,7 @@ export default function OnboardingPage() {
update("shift", e.target.value)} @@ -541,6 +544,7 @@ export default function OnboardingPage() {
+ update("employees", e.target.value)} />
- update("industry", e.target.value)}> {INDUSTRY_TYPES.map(t => )} @@ -1047,7 +1047,7 @@ function CompanyFormPage({ onNavigate }: { onNavigate: (p: string) => void }) {
- update("region", e.target.value)}> {REGIONS.map(r => )}
@@ -1068,7 +1068,7 @@ function CompanyFormPage({ onNavigate }: { onNavigate: (p: string) => void }) {
update("sanctionedLoad", e.target.value)} />
- update("shift", e.target.value)}> {SHIFT_PATTERNS.map(s => )}
@@ -1099,14 +1099,14 @@ function CompanyFormPage({ onNavigate }: { onNavigate: (p: string) => void }) {
- update("budgetRange", e.target.value)}>
-
@@ -1496,7 +1496,7 @@ function CompanyDashboard({ onNavigate }: { onNavigate: (p: string) => void }) {
setNewTaskTime(e.target.value)} className="gc-input" />
- setNewTaskRegion(e.target.value)} className="gc-input gc-select" style={{ cursor: "pointer" }}> {REGIONS.map(r => )}