Change modal submit button color

Is possible to change this color the action button only by not using the ->color() ? If I use that it will also change the color in the table action. I only need to change the color in the submit button
Solution
Solve by making custom action class:
<?php

namespace App\Filament\CustomActions;

use Filament\Actions\StaticAction;
use Filament\Tables\Actions\Action;

class CustomAction extends Action
{
    public function getModalSubmitAction(): ?StaticAction
    {
        $action = static::makeModalAction('submit')
            ->label($this->getModalSubmitActionLabel())
            ->submit($this->getLivewireCallMountedActionName())
            ->color($this->getModalIconColor()); // want it to be the same as icon color

        if ($this->modalSubmitAction !== null) {
            $action = $this->evaluate($this->modalSubmitAction, ['action' => $action]) ?? $action;
        }

        if ($action === false) {
            return null;
        }

        return $action;
    }
}
Was this page helpful?