$component->onColor(Color::Pink) broken in V4
In V3, I was able to pass the Color enum into the
onColor method, but this is throwing an errors in V4. The error is Closure|string|null, array given, which makes sense as the enum value is an array.
In V3, the onColor method was public function onColor(string | array | Closure | null $color): static
It would be nice if this worked in V4.1 Reply
Infact,
->color(Color::Green) works on Action buttons… and ->modalIconColor(Color::Gray) does not throw an error.