diff --git a/src/View/Components/Alert.php b/src/View/Components/Alert.php index 2a30329..63a3ecc 100644 --- a/src/View/Components/Alert.php +++ b/src/View/Components/Alert.php @@ -89,10 +89,10 @@ public function alertClasses(): string }; } - public function descriptionClasses(): string + public function textColor(): string { return match (true) { - $this->secondary => 'text-secondary/80 dark:text-secondary/80', + $this->secondary => 'text-secondary dark:text-secondary', $this->black => 'text-black-700 dark:text-black-400', $this->white => 'text-white-700 dark:text-white-400', $this->slate => 'text-slate-700 dark:text-slate-400', @@ -117,7 +117,7 @@ public function descriptionClasses(): string $this->fuchsia => 'text-fuchsia-700 dark:text-fuchsia-400', $this->pink => 'text-pink-700 dark:text-pink-400', $this->rose => 'text-rose-700 dark:text-rose-400', - default => 'text-primary/80 dark:text-primary/80', // primary + default => 'text-primary dark:text-primary', // primary }; } @@ -179,22 +179,22 @@ public function render(): View|Closure|string >
- +
-
$description])> -

+
$description])> +

{{ $alertTitle }}

@if($description) -
+
{{ $description }}
@endif @if($errors) -
    +
      @foreach($errors as $error)
    • {{ $error }}
    • @endforeach