fix(ui): blur label during loading so only spinner visible
wire:loading.class adds opacity-40 + blur-sm to label span, transition-[filter,opacity] smooths the blur in/out. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
be8fdc8fe4
commit
2412abcde7
|
|
@ -21,7 +21,7 @@ $cls = $base . ' ' . ($variants[$variant] ?? $variants['primary']);
|
||||||
{{ $attributes->merge(['type' => $type, 'class' => $cls]) }}
|
{{ $attributes->merge(['type' => $type, 'class' => $cls]) }}
|
||||||
@if($action) wire:loading.attr="disabled" wire:target="{{ $action }}" @endif
|
@if($action) wire:loading.attr="disabled" wire:target="{{ $action }}" @endif
|
||||||
>
|
>
|
||||||
<span @if($action) wire:loading.class="opacity-50" wire:target="{{ $action }}" @endif class="flex items-center gap-2">
|
<span @if($action) wire:loading.class="opacity-40 blur-sm" wire:target="{{ $action }}" @endif class="flex items-center gap-2 transition-[filter,opacity] duration-150">
|
||||||
{{ $slot->isNotEmpty() ? $slot : $label }}
|
{{ $slot->isNotEmpty() ? $slot : $label }}
|
||||||
</span>
|
</span>
|
||||||
@if($action)
|
@if($action)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue