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

Color module doesn't allow configuring new colors in a custom palette

$
0
0

Problem/Motivation

When color settings in a theme were previously set to custom colors and a new configurable color is introduced, it is not possible to configure the new color, resulting in unset color values in the generated CSS. The reason is that to build the form, the existing configuration is used to discover available colors, not the definition from color.inc (it is only used to fill in the color labels).

Steps to reproduce

  1. In a color configurable theme, use a custom configuration and configure its colors.
  2. Add a new color to the color definitions in color.inc.
  3. Return to edit the colors.
  4. Notice that the new color does not show up.

Proposed resolution

Allow the new colors to be configured.

Remaining tasks

  • Create patch
  • Add tests?
  • Review

User interface changes

None, except new colors now showing up when using a custom palette.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 293910

Trending Articles



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