Error when trying to mix CT 1.7 colours

Created on 11 April 2024, about 1 year ago
Updated 28 April 2024, about 1 year ago

Problem/Motivation

As described in
https://github.com/civictheme/civictheme_drupaltheme/blob/main/src/Drush...

But getting an error:

[error]  TypeError: Drupal\civictheme\Color\CivicthemeColorUtility::mix(): Argument #3 ($range) must be of type int, string given, called in /app/web/themes/contrib/civictheme/src/Color/CivicthemeColorShadeFilter.php on line 32 in Drupal\civictheme\Color\CivicthemeColorUtility::mix() (line 69 of /app/web/themes/contrib/civictheme/src/Color/CivicthemeColorUtility.php) #0 /app/web/themes/contrib/civictheme/src/Color/CivicthemeColorShadeFilter.php(32): Drupal\civictheme\Color\CivicthemeColorUtility::mix()

https://github.com/civictheme/civictheme_drupaltheme/blob/main/src/Color...

That parameter is set as a string, but it is expected to be an int.

Where is the int supposed to come from as the original command executed does not assume any ints?
drush civictheme:set-brand-colors --include=/app/web/themes/contrib/civictheme/src/Drush "#ff0000" "#00ff00" "#0000ff" "#ffff00" "#00ffff" "#ff00ff"

Steps to reproduce

Proposed resolution

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024