Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293910

Use color input type in the color.module

$
0
0

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.

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.


Viewing all articles
Browse latest Browse all 293910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>