-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparency still possible with disableAlpha=true #268
Comments
I am not sure I understand the title correctly but isn't that when It should be gone if |
I've inverted false and true while explaining but the problem remains the same Here is a screenshot (and it's easily reproducible) I've come across a custom solution myself where I remove that transparency when a color is emitted, but I think it should be included in ngx-color code directly. |
Nice. I think you should make a PR about that. I am just going through this when I tried to use this component for my Angular app. |
🎉 This issue has been resolved in version 5.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hello,
Disabling alpha removes slider as expected (I'm using color-sketch implementation),
But if user types an HEX with a length of 4 such as 1230, it will be converted into a color of #112233 (which is normal behavior), but a transparency set to 0%.
It typically happens when user deletes some chars of a 6-length HEX, coming down to a HEX of 4 and so, transparency.
I think it's a way to bypass the behavior we expect when setting disableAlpha to TRUE.
What do you think ?
Thanks for your time
--
I can do a PR if needed, I've looked into code and it seems to be related with
isValidHex(hex: string)
/handleChange
not taking into account disableAlpha attribute.The text was updated successfully, but these errors were encountered: