Add a new color field type

Created on 20 August 2012, about 12 years ago
Updated 30 January 2023, over 1 year ago

Now that we have #1445224: Add new HTML5 FAPI element: color β†’ landed for FAPI, we should really add the ability to have a color field type. It should probably have one column 'color' of type SQL varchar(7), and a field widget using the new HTML5 FAPI type, and a default formatter of just 'plain text' that outputs the raw value.

Based on #1675000: Allow selecting an alpha channel for the color FAPI element β†’ we may add support for an 'alpha' column via a field setting (since it changes the field schema).

✨ Feature request
Status

Needs work

Component

Idea

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
  • html5

    Implements and supports the use of HTML5.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

  • πŸ‡¬πŸ‡§United Kingdom catch

    There are about 30,000 Drupal 8+ sites using https://www.drupal.org/project/color_field β†’ , which is a fair amount, but I'm not sure it's enough to justify adding the field type to core. We're already considering moving telephone to contrib since that isn't widely used. Moving this to the core ideas queue for new feature evaluation.

Production build 0.71.5 2024