My scheme is defined as:

  'schemes' => array(
    '#1f6eb3,#2a5c8a,#b8d6f2,#999999,#1f6eb2' => t('generic (default)'),
  ),

My css that color module affects:

#sidebar-left .menu-name-primary-links a{color: #1f6eb3}
#sidebar-left .menu-name-primary-links a{color: #3f9cf2}

The result after another scheme or new custom scheme is applied:

#sidebar-left .menu-name-primary-links a{color: }
#sidebar-left .menu-name-primary-links a{color: #3e9bf2}

Comments

bramvdkroef’s picture

Status: Active » Needs review
StatusFileSize
new554 bytes

The bug is on line 387 of modules/color/color.module:

  unset($conversion['base']);

Every time the base color is found in the stylesheet it is replaced with the base color in the conversion palette; but since that color has been removed you get null (or "").

I don't know why such an obvious bug wasn't spotted before d6 was released, or why someone thought it was a good idea to put it in. It doesn't do anything other than screwing up stylesheets.

Status: Needs review » Needs work

The last submitted patch, color-base-replaced-with-null-732938-1.patch, failed testing.

bramvdkroef’s picture

Version: 6.15 » 6.x-dev
Status: Needs work » Needs review
StatusFileSize
new554 bytes
fuzzy76’s picture