fix(setbuilder): theme-correct buttons, toggle overlap, dashboard nav link#416
Conversation
… link Three testing-feedback fixes: - .btn base class now sets background: var(--surface-raised) — bare 'btn'/'btn btn-sm' buttons previously fell back to the browser's light ButtonFace background under near-white --text, rendering them nearly invisible in dark themes (setbuilder pool '+ Add', Clear/Remove, plus ~25 bare-btn instances across admin/events pages). Adds .btn:disabled opacity/cursor state. - Curve toolbar contrast: viewSwitch/toolbarBtn get raised surfaces; hardcoded #00f5d4 active accent routed through new --color-curve-accent theme token (neon teal in dark/high-contrast, teal-700 in daylight). - Floating ThemeToggle suppressed on /setbuilder routes (it overlapped the topbar's Duplicate/Share actions); setbuilder pages render the toggle inline in their headers instead. - Dashboard header gains a Set Builder link — /setbuilder was previously unreachable from the dashboard.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThis PR routes the theme toggle conditionally based on pathname, hides the floating toggle on ChangesTheme Infrastructure and Route-Based Toggle Placement
🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly Related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Fixes three issues found during local testing of the setbuilder:
.btnclass defined no background, so anybtn/btn btn-smbutton without an inline background override fell back to the browser's lightButtonFacedefault with near-white--texton top (~1:1 contrast). This hit the setbuilder pool panel ("+ Add", "Clear", "Remove"), ReplacePopover, ImportModal — and ~25 other bare-btn instances across admin/events pages..btnnow defaults tobackground: var(--surface-raised)(the same convention used inline everywhere else), plus a new.btn:disabledstate.#00f5d4active accent now routes through a new--color-curve-accenttheme token (neon teal in dark/high-contrast, teal-700 in daylight) so it respects the global theme system./setbuilderroutes and rendered inline in the setbuilder headers instead./setbuilder(previously only reachable by typing the URL).Test plan
/setbuilder/setbuilderroutes, renders it elsewhere--color-curve-accentin all three themes)🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Style
Tests