I updated the toState function which is responsible for managing the color on the color picker component to include the alpha channel in the hex color when the alpha is less than 100%.
Hex format is 8 characters (#RRGGBBAA) for colors with transparency.
In case the (alpha = 100%), the hex format remains 6 characters (#RRGGBB).
I updated the
toState
function which is responsible for managing the color on the color picker component to include the alpha channel in the hex color when the alpha is less than 100%.