File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ test('issue 23', async () => {
14
14
'body-bg' : '#fff' ,
15
15
'body-font-family' : 'var(--font-primary)' ,
16
16
'body-font-size' : '1rem' ,
17
- 'body-font-weight' : '400' ,
18
- 'body-line-height' : '1.5' ,
17
+ 'body-font-weight' : 400 ,
18
+ 'body-line-height' : 1.5 ,
19
+ 'body-font-weight2' : '400' ,
20
+ 'body-line-height2' : '1.5' ,
19
21
} ,
20
22
} ,
21
23
} ,
@@ -32,7 +34,9 @@ test('issue 23', async () => {
32
34
+ --body-font-family: var(--font-primary);
33
35
+ --body-font-size: 1rem;
34
36
+ --body-font-weight: 400;
35
- + --body-line-height: 1.5
37
+ + --body-line-height: 1.5;
38
+ + --body-font-weight2: 400;
39
+ + --body-line-height2: 1.5
36
40
+ }
37
41
38
42
"
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const parseVariables = (object, varPrefix) => {
76
76
if ( hasOwn ( object , key ) && isPlainObject ( object [ key ] ) ) {
77
77
newObject = recurse ( object [ key ] , formattedKey ? pre + formattedKey : pre . slice ( 0 , - 1 ) )
78
78
} else {
79
- newObject [ formattedKey ? pre + formattedKey : pre . slice ( 0 , - 1 ) ] = object [ key ]
79
+ newObject [ formattedKey ? pre + formattedKey : pre . slice ( 0 , - 1 ) ] = ` ${ object [ key ] } `
80
80
}
81
81
}
82
82
return newObject
You can’t perform that action at this time.
0 commit comments