Skip to content

Commit

Permalink
Merge pull request #63 from Lakshan-Madushanka/fix
Browse files Browse the repository at this point in the history
Fix loading state indicator styles overriding issue
  • Loading branch information
Lakshan-Madushanka authored Dec 1, 2024
2 parents 25b7756 + 7a51161 commit ac1221b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@endif
type="button"
disabled
{{ $attributes->merge(["class" => $class . $severity . "inline-flex justify-center items-center gap-x-2 font-semibold rounded border border-transparent text-white disabled:opacity-50 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"]) }}
{{ $attributes->merge(["class" => $class . $severity . "justify-center items-center gap-x-2 font-semibold rounded border border-transparent text-white disabled:opacity-50 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"]) }}
>
<span>{{ $slot }}</span>
<x-comments::spin />
Expand Down Expand Up @@ -63,7 +63,7 @@
@endif
disabled
type="button"
{{ $attributes->merge(["class" => $class . $severity . "inline-flex justify-center items-center gap-x-2 font-semibold rounded border border-transparent text-white disabled:opacity-50 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600 cursor-not-allowed"]) }}
{{ $attributes->merge(["class" => $class . $severity . "justify-center items-center gap-x-2 font-semibold rounded border border-transparent text-white disabled:opacity-50 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600 cursor-not-allowed"]) }}
>
<span>{{ $slot }}</span>
<x-comments::spin />
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/comment-item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class="text-xs"
<x-comments::user-check height="14" width="14" />
</div>

<x-comments::spin wire:loading wire:target="delete({{$comment}})" class="!text-blue-500" />
<span wire:loading wire:target="delete({{$comment}})"><x-comments::spin class="!text-blue-500" /></span>

<div
x-data="{ showEditMenu: false }"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/comment-list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class="lakm_commenter space-y-6"
</div>
</div>

<div wire:loading.flex class="flex items-center gap-x-2 sm:gap-x-4">
<div wire:loading.flex class="items-center gap-x-2 sm:gap-x-4">
<div class="basis-14"></div>
<x-comments::spin class="!size-5 !text-blue-500" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/comment-reply-item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class="text-xs"
<x-comments::user-check height="14" width="14" />
</div>

<x-comments::spin wire:loading wire:target="delete({{$reply}})" class="!text-blue-500" />
<span wire:loading wire:target="delete({{$reply}})"><x-comments::spin class="!text-blue-500" /></span>

<div
x-data="{ showEditMenu: false }"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/comment-reply-list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
@endif

<div wire:loading.flex wire.target="setSortBy" class="flex items-center gap-x-2 sm:gap-x-4">
<div wire:loading.flex wire.target="setSortBy" class="items-center gap-x-2 sm:gap-x-4">
<x-comments::spin class="!size-5 !text-blue-500" />
</div>

Expand Down
2 changes: 1 addition & 1 deletion tests/Livewire/CommentReplyItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
'guestMode' => false
]
)
->assertSeeText($reply->ownerName(true))
->assertSeeText(Str::limit($reply->ownerName(true), 25))
->assertOk();
});

Expand Down

0 comments on commit ac1221b

Please sign in to comment.