fix defineHSL to include full hsl color

This commit is contained in:
Ray Elliott 2021-02-18 14:17:09 +00:00
parent a8d1e1e636
commit 63567a4d7b
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const postcssMixins = {
// TODO - untest
defineHSL(mixin, name, hue, sat, light) {
const obj = {};
obj[name] = name;
obj[name] = `hsl(${hue}, ${sat}, ${light})`;
// need to ensure hue is a string otherwise postcss (is it postcss?) appends
// 'px' to the property's value.
obj[`${name}__h`] = hue.toString();