diff options
| author | Henry Jameson <me@hjkos.com> | 2020-01-27 04:20:13 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-01-27 04:20:13 +0200 |
| commit | 7c074b87418602effac03c4bae34afffcfca283f (patch) | |
| tree | 095603d8fbcb45964eef9388023e38a61190acdd /src/services/theme_data/theme_data.service.js | |
| parent | d7e7f47b66de160b351e4e836de08ac188fc3079 (diff) | |
fix rgba css generation, add some tests to automatically verify that themes are
generated properly
Diffstat (limited to 'src/services/theme_data/theme_data.service.js')
| -rw-r--r-- | src/services/theme_data/theme_data.service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/theme_data/theme_data.service.js b/src/services/theme_data/theme_data.service.js index 0a6733a9..49b99148 100644 --- a/src/services/theme_data/theme_data.service.js +++ b/src/services/theme_data/theme_data.service.js @@ -353,7 +353,7 @@ export const getColors = (sourceColors, sourceOpacity, mod) => SLOT_ORDERED.redu if (dependencySlot && sourceColors[dependencySlot] === 'transparent') { outputColor.a = 0 } else { - outputColor.a = sourceOpacity[opacitySlot] || OPACITIES[opacitySlot].defaultValue || 1 + outputColor.a = Number(sourceOpacity[opacitySlot]) || OPACITIES[opacitySlot].defaultValue || 1 } } if (opacitySlot) { |
