Update StyleAttributes.js

Added the answer on Line 42.
pull/4988/head
Manvir Singh Heer 5 years ago committed by GitHub
parent 0f5fe6552d
commit 00efb43fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ export default class StyleAttributeWrapper extends AttributeWrapper {
})
.reduce((lhs, rhs) => x`${lhs} + ${rhs}`);
// TODO is this necessary? style.setProperty always treats value as string, no?
// TODO is this necessary? style.setProperty always treats value as string, no? - Yes, it is required when there is an additional subcall for a value throught some kind of variable
// if (prop.value.length === 1 || prop.value[0].type !== 'Text') {
// value = x`"" + ${value}`;
// }

Loading…
Cancel
Save