Skip to content

[ColorPicker] Support ref as prop, make input editable, and fix pointer events #607

@ravisuhag

Description

@ravisuhag

Summary

Improvements to the ColorPicker component to add missing ref support and improve configurability.

Improvements

1. Missing ref prop support on multiple sub-components

ColorPickerRoot, ColorPickerArea, and ColorPickerInput don't accept ref as a prop.

2. ColorPickerInput is hardcoded readOnly

The input always renders as readOnly — users can't type in a hex/rgb value directly.

4. Manual pointer event handling in Area

ColorPickerArea manually manages pointermove/pointerup window event listeners. These should be cleaned up properly on unmount.

Moved to Cross-Cutting Issues

The following items have been moved to cross-cutting issues that address them across all components:

Metadata

Metadata

Assignees

No one assigned

    Labels

    componentIndividual component-level issuetriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions