mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user