Update icon-button.blade.php

This commit is contained in:
Dan Harrin
2025-02-08 12:23:11 +00:00
parent 461e2b30af
commit e645de1440
@@ -147,9 +147,9 @@
'wire:loading.attr' => 'disabled',
'wire:target' => ($hasLoadingIndicator && $loadingIndicatorTarget) ? $loadingIndicatorTarget : null,
], escape: false)
->when(! $hasTooltip, function ($attributes) use ($label) {
return $attributes->merge(['title' => $label], escape: true);
})
->merge([
'title' => $hasTooltip ? null : $label,
], escape: true)
->class([$buttonClasses])
->style([$buttonStyles])
}}
@@ -212,9 +212,9 @@
@endif
{{
$attributes
->when(! $hasTooltip, function ($attributes) use ($label) {
return $attributes->merge(['title' => $label], escape: true);
})
->merge([
'title' => $hasTooltip ? null : $label,
], escape: true)
->class([$buttonClasses])
->style([$buttonStyles])
}}