adobe / spectrum-web-components

Spectrum Web Components
https://opensource.adobe.com/spectrum-web-components/
Apache License 2.0
1.29k stars 205 forks source link

[NEW]: Support of ColorField (same as React Spectrum's ColorField component) #3070

Closed prabhjodh closed 8 months ago

prabhjodh commented 1 year ago

Code of conduct

Name of component

sp-color-field

Link to the Spectrum assets

https://react-spectrum.adobe.com/react-spectrum/ColorField.html

Design specification

Add the support for ColorField component which can be used to get color string as an input (in formats such as HEX and RGB) and also provide with the support to format and validate the color strings according to the color mode (same as React Spectrum's ColorField component).

Interaction

No response

Accessibility

No response

API requirements

Same as React Spectrum's ColorField

Other requirements

No response

Westbrook commented 1 year ago

There is no Color Field in the Spectrum Design system at current, so I'm not sure there would be any form of specification against which to build this pattern.

najikahalsema commented 1 year ago

Hi, I spoke with the design team about this, and while they are aware of it, developing a design spec for this is not prioritised for them at the moment. This would be its own component. If this component were to exist, it would be used in conjunction with other colour elements, as seen below: image