Skip to content

Commit

Permalink
Keep Tailwind 2.x support in views
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Dec 28, 2021
1 parent ea51356 commit c92ed78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/alpine-alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class="w-full max-w-sm rounded-lg shadow-lg pointer-events-auto"
<div class="overflow-hidden rounded-lg shadow-xs">
<div class="p-4">
<div class="flex items-start">
<div class="shrink-0">
<div class="flex-shrink-0">
{{ $icon }}
</div>
<div class="ml-3 w-0 flex-1 pt-0.5">
<p x-text="{{ $xtext }}" x-bind:class="{{ $xcolor }}" class="text-sm font-medium leading-5">{{ $slot }}</p>
</div>
<div class="flex shrink-0 ml-4">
<div class="flex flex-shrink-0 ml-4">
<button type="button" x-on:click.prevent.stop="{{ $xclick }}"
class="inline-flex text-gray-100 transition duration-150 ease-in-out focus:outline-none focus:white">
<svg class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor">
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function notify(
[$bg, $icon, $iconcolor] = match ($preset) {
'success', 'green', 'saved', 'check' => ['tf-bg-success', 'check', $iconcolor],
'warning', 'orange', => ['tf-bg-warning', 'exclamation', $iconcolor],
'happy', 'positive' => ['bg-white', 'happy', 'text-emerald-600'],
'happy', 'positive' => ['bg-white', 'happy', 'text-green-600'],
'sad', 'negative' => ['bg-white', 'sad', 'text-red-600'],
'danger', 'red' => ['tf-bg-danger', 'warning', $iconcolor],
'info', 'blue' => ['tf-bg-info', 'info', $iconcolor],
Expand Down

0 comments on commit c92ed78

Please sign in to comment.