Skip to content

Commit a3b3df1

Browse files
committed
strip unit from first value so it's not passed on
1 parent 9703ee1 commit a3b3df1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default postcss.plugin('postcss-lab-function', opts => {
6060
)
6161

6262
children[0].value = String(rgbValues[0]);
63+
children[0].unit = '';
6364
children[1].value = String(rgbValues[1]);
6465
children[2].value = String(rgbValues[2]);
6566

0 commit comments

Comments
 (0)