Design PR 2: Sidebar sections become M3 elevated cards#50
Merged
scottstanie merged 1 commit intoopera-adt:mainfrom Apr 24, 2026
Merged
Design PR 2: Sidebar sections become M3 elevated cards#50scottstanie merged 1 commit intoopera-adt:mainfrom
scottstanie merged 1 commit intoopera-adt:mainfrom
Conversation
Wraps each .sidebar-section in an elevated card surface (background --sb-surface, 1px border, --radius-md, M3 Elevation 1 shadow) instead of the previous flat scroll with border-bottom dividers. Cards have 16px internal padding and 12px vertical gap; horizontal margin is 8px to keep the 5-button histogram row on one line. Visualization card collapses the old "colorbar-img + separate Min/Max row" into a single .colorbar-row — [MIN input | colorbar | MAX input] flanking horizontally. Labels become aria-labels; position carries the semantics. Frees ~48px of vertical space. .sidebar-range gets the full M3 Continuous Slider treatment: 4px track on --sb-surface2, prominent 18px thumb in accent with scrim ring on hover/focus (Firefox also fills the progress track). Applies to all sliders (opacity, time step, buffer radii) — consistent. Bumps .histogram-chart-area background from --sb-surface to --sb-surface2 so it stays visible now that cards sit on --sb-surface. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second in the design refresh series. Built on the tokens landed in #43.
This PR turns the flat scroll of sidebar sections into elevated M3 cards and does three structural cleanups that the token PR deferred.
1. Cards
Each section (Layers, Visualization, Reference Point, Masking, Point Buffer) now sits on an elevated surface with a 1px border,
--radius-md(12px) corners, and M3 Elevation 1 shadow (one scrim shadow + one key shadow). The previousborder-bottomdivider is gone.2. Compact Visualization card (MIN / colorbar / MAX on one row)
Collapses the old layout
into a single row
aria-label— position carries the semantics.colorbar-row { grid-template-columns: 72px 1fr 72px; }3. M3 Continuous opacity slider
.sidebar-rangegets the full M3 continuous-slider treatment:--sb-surface2--sb-surface-color border (ring) and drop shadow::-moz-range-progressin accentNo filled-track on Chrome — would require
--pctcustom property updated inline on every change. The thumb alone carries the position signal clearly enough; skipped the inline-style work.Side-fix
.histogram-chart-areawas--sb-surface; now that cards sit on--sb-surfaceit would vanish. Bumped to--sb-surface2.Test plan
npm run buildpassesnpm run tscpasses🤖 Generated with Claude Code