Light mode for remaining panels, batch B (3/3) - #508
Conversation
Third and final part of the light-mode rollout, stacked on batch A. Applies the theme.svelte.ts system to the remaining domain panels: LayoutPanel, MacrosPanel, MiscPanel, MotionPanel, ShadowsPanel, SpacingPanel, ThemesPanel, TypographyPanel, WcagPanel. Includes a fix for a review-bot finding on the original combined PR: LayoutPanel's two <select> controls hardcoded their <option> element background to the dark-mode color regardless of theme (native <option> styling has no dark: variant support), producing dark-on-dark text in light mode. Now derived from the chrome theme at render time.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFinish light-mode styling for remaining configurator panels
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules 1.
|
Same bug LayoutPanel already fixed in this PR was still present in MotionPanel, TypographyPanel, and WcagPanel: their <select> controls got a light-mode text/border treatment but every <option> kept a hardcoded dark background (#16161e), which native <option> elements don't accept via a dark: class, so light mode showed unreadable dark-on-dark dropdown items. Applies the same fix as LayoutPanel: a themeState-derived optionBg used in each <option>'s inline style.
|
Fixed in 367a37b — the same hardcoded Generated by Claude Code |
9c38d6f
into
claude/studio-light-mode-2-inputs-panels-a
Third and final part of the light-mode rollout. Stack: #506 (1/3) → #507 (2/3) → 3/3 (this PR). Based on
claude/studio-light-mode-2-inputs-panels-a— merge #506 and #507 first; this PR's diff will shrink to just its own files once those land.Summary
Applies the
theme.svelte.tssystem to the remaining domain panels: LayoutPanel, MacrosPanel, MiscPanel, MotionPanel, ShadowsPanel, SpacingPanel, ThemesPanel, TypographyPanel, WcagPanel.Once this merges, every panel and the whole Studio chrome supports light mode — this closes out the rollout that #500 originally proposed as one large PR.
Review-bot fix folded in
LayoutPanel: two<select>controls hardcoded their<option>background to the dark-mode hex color regardless of theme. Native<option>elements don't support Tailwind'sdark:variant via class, so the background is now derived fromthemeState.valueat render time instead.Testing
npx svelte-check— 0 errorsnpx vitest run— 113/113 passinggit diffbetween the two is empty).Generated by Claude Code