Closed reppair closed 1 year ago
Was originally part of #12, got a PR for fixing hex8
but not rgba
, so extracting it so we can close it but keep this one.
Hi
Sadly we do not support Nova 3 any longer. If you need fix for this you might want to fork this from that version and create a fix for your project.
Hi there.
There are issues using the alpha channel in
rgba
mode with version1.2.2
of the package.RGBA
Using
Color::make('rgba')->chrome()->displayAs('rgba')->saveAs('rgba')
and picked example colorrgba(51, 84, 151, 0.43)
{"r":51,"g":84,"b":151,"a":0.43137254901960786}
json
value as string{"r":51,"g":84,"b":151,"a":0.43137254901960786}
instead asrgba
value like it really shouldrgba
color at all, it always loads black using background-color: rgb(0,0,0) instead of rgba(51, 84, 151, 0.43)Chrome picker issue
When using the chrome picker, it always defaults to the hex mode/ux of the picker. It would be nice if we can control that with the
displayAs()
method is used. For example when havingdisplayAs('rgba')
chained on the field, when the picker is first opened it should default to thergba
ux/styles of the picker instead ofhex
.Even better we can use that to automatically set the format which should be used to store the value.