Skip to content
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

Alpha #45

Closed
TheLoch opened this issue May 18, 2023 · 1 comment
Closed

Alpha #45

TheLoch opened this issue May 18, 2023 · 1 comment

Comments

@TheLoch
Copy link

TheLoch commented May 18, 2023

Hello,

Is there a way to add alpha (transparency) to this picker ?

Thank you,
Loch

@dcustodio
Copy link
Owner

Sorry for the very late reply but because this picker uses the native input it is not possible.

Setting the value to anything that isn't a valid, fully-opaque, RGB color in hexadecimal notation will result in the value being set to #000000. In particular, you can't use CSS's standardized color names, or any CSS function syntax, to set the value. This makes sense when you keep in mind that HTML and CSS are separate languages and specifications. In addition, colors with an alpha channel are not supported; specifying a color in 9-character hexadecimal notation (e.g. #009900aa) will also result in the color being set to #000000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants