fix defineHSL to include full hsl color
This commit is contained in:
parent
a8d1e1e636
commit
63567a4d7b
|
@ -6,7 +6,7 @@ const postcssMixins = {
|
||||||
// TODO - untest
|
// TODO - untest
|
||||||
defineHSL(mixin, name, hue, sat, light) {
|
defineHSL(mixin, name, hue, sat, light) {
|
||||||
const obj = {};
|
const obj = {};
|
||||||
obj[name] = name;
|
obj[name] = `hsl(${hue}, ${sat}, ${light})`;
|
||||||
// need to ensure hue is a string otherwise postcss (is it postcss?) appends
|
// need to ensure hue is a string otherwise postcss (is it postcss?) appends
|
||||||
// 'px' to the property's value.
|
// 'px' to the property's value.
|
||||||
obj[`${name}__h`] = hue.toString();
|
obj[`${name}__h`] = hue.toString();
|
||||||
|
|
Loading…
Reference in New Issue