Open
Description
The argbFromHex
function does not parse hex values correctly when the hex value is 8 characters long (excluding the #
). It incorrectly assumes the last two characters are the blue channel when it's actually the alpha channel.
Example: 50% opacity as represented by the 80
in the input (black)
Input: #80 (equivalent to #7f7f7f)
Incorrect Output: 4278190208 (equivalent to #80) ... a blue
material-color-utilities/typescript/utils/string_utils.ts
Lines 50 to 78 in 9e67d5e