Repository navigation
ColorPicker: Once UI's own colour picker, opened by ColorInput - #630
Merged
Merged
Conversation
A saturation/brightness area, hue and opacity tracks (keyboard sliders), a HEX / RGB / OKLCH switch with a field that takes any of them, an eyedropper where the browser has one, and theme and custom swatches. ColorInput opens it in a dropdown; picker="native" keeps the browser's. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
12 tasks done
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.
What
A core
ColorPicker, andColorInputnow opens it instead of the browser's picker.supportAlpha), each a keyboard slider (arrows, Shift, Home/End). HEX / RGB / OKLCH switch plus a field that takes any of them. Eyedropper where the browser hasEyeDropper. Swatches: theme brand/accent/neutral first, thenswatches.onValueChangewhile dragging,onValueCommitonce a pick is done;format/onFormatChangecontrollable;labelsfor translation.picker="once"(default) opens ColorPicker in a dropdown, the field stays the control (same pattern as DateInput: norole="button"wrapper, panel is a dialog named after the field). Picks go through the native input, soonChangeand form libraries still hear them.picker="native"keeps the old behaviour and the opacity button. New propsswatches,pickerLabels.Checks
color-picker.test.tsx(math, keys, formats, typed values, swatches, value prop, axe); ColorInput tests updated, plus a test that the picker opens and a pick reports.check:docsclean../components/ColorPicker52 KB, ColorInput +12 KB (it now pulls the picker), root +3 KB.Follow-ups: ColorButton could open the same picker; apps with hand-rolled native pickers (Tavilio design panel, Studio brand kit, Frametic/Motion editors) can switch after release.
Generated by Claude Code