Problem/Motivation
Drupal has shipped with the Farbtastic library since Garland was added in 2006 to allow users to select colors from a color picker in themes.
Nowadays, the "color" HTML input type is widely supported in all major browsers except IE11 (https://caniuse.com/?search=color) and provides a preferred native UI/UX for this functionality.
Proposed resolution
Use the "color" input type in color.module.
Remaining tasks
- Deprecate Farbtastic?
User interface changes
The color picker in color.module will be replaced with a native UI, except in IE11 where colors can only be entered by hex code.
API changes
Data model changes
Release notes snippet
The color picker used in theme settings has been replaced with the native browser widget.
Related Issues
- Originally postponed on #1445224: Add new HTML5 FAPI element: color
- Postponed on #1957400: Improve Color's admin interface on touch devices
Original report by @nod_
Works well on FF, Opera. Chrome implementation of the color widget is messed up, hopefully they will fix it.
Providing a patch to allow testing from other people and hopefully come up with a proper strategy for weird browsers. Color input type is kinda the bleeding edge, we'll get cut.
The js in itself needs quite some work, but outside the scope of this issue.