From 1fb6b48bfd9e7871b5c80fff7cc4534ac882c5e4 Mon Sep 17 00:00:00 2001 From: Abraham Arango Date: Fri, 19 Sep 2025 10:45:02 -0500 Subject: [PATCH] Fix variable declaration in opacity function --- src/styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles.js b/src/styles.js index eb2f6bd..5371223 100644 --- a/src/styles.js +++ b/src/styles.js @@ -12,7 +12,7 @@ const opacity = (color, opacity) => { // only handled these values. We keep the old behavior for backward // compatibility with v3 codebases but use color-mix for any other color // values. - hex = color.replace('#', '') + let hex = color.replace('#', '') hex = hex.length === 3 ? hex.replace(/./g, '$&$&') : hex const r = parseInt(hex.substring(0, 2), 16) const g = parseInt(hex.substring(2, 4), 16)