Repository navigation
Improve color scale legend layout and hover details - #11239
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 94cab4171c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Low impact] The PR appears safe to merge; no outstanding issues were found. SummaryThe PR makes color legends more compact and adds clearer hover and keyboard details.
The previous findings are addressed. No new issues found. Reviews (4) · Last reviewed commit: "Contain scrolling on the legend scrollpo..." · Reviewed by Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 13ac619. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 02bcefe after merge; follow-ups below. No P1s.
The legend no longer disappears while accessors re-evaluate: _getResolvedColorScales() keeps the last applied scales, and a test covers it. The panel and hover sample use the --menu-* theme variables.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| aria-label={description} | ||
| tabIndex={0} |
There was a problem hiding this comment.
P2: Screen readers may announce nothing when a bin gets focus. ARIA 1.2 does not allow aria-label on a span with no role, and browsers often ignore it. The continuous ramp has no keyboard path to its hover value.
Could we give each bin role="img", and make the ramp focusable with arrow-key steps?
Details
aria-label="Quantile scale"on the wrappingdiv(line 220) has the same problem.- Still the same on master (
color-scale-widget.tsx:256-261).
Generated by Claude Code

Change List
Verified with lint, Chromium widget tests, and the local website preview.
Note
Low Risk
Changes are isolated to the experimental color scale widget's presentation and interaction layers, with no impact on core rendering or data processing.
Overview
Enhances
_ColorScaleWidgetwith interactive hover and focus inspections, a compact two-column grid aligning layer labels alongside scales, and a newcategoricalLayoutconfiguration option.Continuous color ramps and quantile bins now display a portal-rendered tooltip (
ColorSample) showing sampled values or break ranges, color swatches, scale classifications, and descriptions. Quantile bins also receive keyboard focus and accessibility attributes.Adds support for wrapping categorical swatches horizontally via
categoricalLayout: 'wrap'. Viewport width bounds, disclosure caret indicators, and corresponding widget tests and documentation have also been added.Reviewed by Cursor Bugbot for commit 02bcefe. Bugbot is set up for automated code reviews on this repo. Configure here.