Skip to content

Commit 1fb6b48

Browse files
committed
Fix variable declaration in opacity function
1 parent 7efcb4a commit 1fb6b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const opacity = (color, opacity) => {
1212
// only handled these values. We keep the old behavior for backward
1313
// compatibility with v3 codebases but use color-mix for any other color
1414
// values.
15-
hex = color.replace('#', '')
15+
let hex = color.replace('#', '')
1616
hex = hex.length === 3 ? hex.replace(/./g, '$&$&') : hex
1717
const r = parseInt(hex.substring(0, 2), 16)
1818
const g = parseInt(hex.substring(2, 4), 16)

0 commit comments

Comments
 (0)