For the browsers that don't support it yet, it behaves as a standard text field.

See http://www.w3.org/TR/html-markup/input.color.html

Comments

pere orga’s picture

Status: Active » Needs review
StatusFileSize
new3.27 KB

Patch attached.

pere orga’s picture

Issue summary: View changes
Steven Brown’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch. I've tested it and have no problems with adding a "#type" of "colorfield" to my custom forms. Looking to use this instead of the color module.

pebosi’s picture

Working for me too.

Steven Brown’s picture

Any movement on getting this in to dev for a new release.

lolandese’s picture

Added a similar issue. See is there is useful stuff in there to port over here and maybe mark it as a dup.

pere orga’s picture

Thanks @lolandese

That can be another approach. But I think it would be better and more standard to implement the color element. We could add a polyfill such as http://bgrins.github.io/spectrum/

pere orga’s picture

Issue summary: View changes
pere orga’s picture

Issue summary: View changes
pebosi’s picture

Using this patch for several year's now. Wondered why it's not added in latest release. Anything i could help to get it in?

gravisrs’s picture

Patch works flawlessly. Please merge.