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
- In a color configurable theme, use a custom configuration and configure its colors.
- Add a new color to the color definitions in color.inc.
- Return to edit the colors.
- 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.