Dark mode from system settings breaks the schedule picker and theme toggle #45
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
With no saved theme and the OS in dark mode, the site renders dark, but components that check
theme === 'dark'treat it as light. The schedule picker is white text on white, the Explore Tags box is white, the toggle shows a moon while the page is already dark, and the first click on the toggle does nothing.How to reproduce
themekey (or use a private window), then sign in.Expected
Every control matches the theme on screen. The toggle shows the icon for the current look, and one click switches it.
Where to look
theme: "system"here;resolvedThemeis the actual "dark" or "light". UseresolvedThemefor styling and for the toggle.web/src/app/components/Navbar.tsx:sxandMenuPropson both scheduleSelectcopies (desktop and mobile), plus the toggle'sonClickand icon.web/src/app/components/SearchResultSidebar.tsx: the react-selectstyles.web/src/app/components/SignedOutNav.tsx: the same toggle logic on the signed-out page.Done when
grep -rn "theme ===" web/srcfinds nothing.