How can I globally change the 'view' action color?

I'd like for it to be 'success' instead of gray. Can I do this globally or do I need to set ->color('primary') on every instance?
3 Replies
Bruno Pereira
Bruno Pereira5w ago
in a service provider boot function you can do
ViewAction::configureUsing(function (ViewAction $action) {
$action->color('success');
});
ViewAction::configureUsing(function (ViewAction $action) {
$action->color('success');
});
use Filament\Actions\ViewAction; or use Filament\Tables\Actions\ViewAction;
Citizen
CitizenOP5w ago
thanks
hlonish
hlonish5w ago
We can implment most of the action related property through global config ! Helps to save lot of time !!

Did you find this page helpful?