add button attributes to the span to better act as a button while keeping the abillity to add components inside

This commit is contained in:
Anas Khalifa
2025-06-10 10:16:58 +03:00
parent b95e63eb9b
commit cae92dc296
@@ -26,7 +26,11 @@
<span
@if ($sortable)
aria-label="{{ trim(strip_tags($slot)) }}"
role="button"
tabindex="0"
wire:click="sortTable('{{ $name }}')"
@keydown.enter="$wire.sortTable('{{ $name }}')"
@keydown.space.prevent="$wire.sortTable('{{ $name }}')"
@endif
@class([
'group flex w-full items-center gap-x-1',