Skip to content

Commit 548cc66

Browse files
authored
Merge pull request #6 from coreui/fix-hex
fix hex
2 parents 27e5fc7 + 4306cfb commit 548cc66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/src/utilities/hex-to-rgb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const hexToRgb = (color) => {
2727
b = parseInt(color.substring(3, 5), 16)
2828
}
2929

30-
return `rgba(${r}, ${g}, ${b}`
30+
return `rgba(${r}, ${g}, ${b})`
3131
}
3232

3333
export default hexToRgb

js/src/utilities/hex-to-rgba.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const hexToRgba = (color, opacity = 100) => {
2727
b = parseInt(color.substring(3, 5), 16)
2828
}
2929

30-
return `rgba(${r}, ${g}, ${b}, ${opacity / 100}`
30+
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`
3131
}
3232

3333
export default hexToRgba

0 commit comments

Comments
 (0)