Skip to content

Commit

Permalink
Update HasColor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin authored Dec 1, 2022
1 parent f54db4a commit f7a4453
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/support/src/Actions/Concerns/HasColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,37 @@ public function color(string | Closure | null $color): static

public function colorDanger(): static
{
return $this->color('danger');
$this->color('danger');

return $this;
}

public function colorPrimary(): static
{
return $this->color('primary');
$this->color('primary');

return $this;
}

public function colorSecondary(): static
{
return $this->color('secondary');
$this->color('secondary');

return $this;
}

public function colorSuccess(): static
{
return $this->color('success');
$this->color('success');

return $this;
}

public function colorWarning(): static
{
return $this->color('warning');
$this->color('warning');

return $this;
}

public function getColor(): ?string
Expand Down

0 comments on commit f7a4453

Please sign in to comment.