From b95e63eb9b885c8152bd95e61b444ccda3a87ee5 Mon Sep 17 00:00:00 2001 From: Anas Khalifa Date: Sun, 8 Jun 2025 17:40:25 +0300 Subject: [PATCH] Refactor header cell component to use a span instead of a button for sortable elements --- .../tables/resources/views/components/header-cell.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tables/resources/views/components/header-cell.blade.php b/packages/tables/resources/views/components/header-cell.blade.php index a86788b1ba..1901dbe2d2 100644 --- a/packages/tables/resources/views/components/header-cell.blade.php +++ b/packages/tables/resources/views/components/header-cell.blade.php @@ -23,14 +23,14 @@ @endif {{ $attributes->class(['fi-ta-header-cell px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6']) }} > - <{{ $sortable ? 'button' : 'span' }} + $sortable, 'whitespace-nowrap' => ! $wrap, 'whitespace-normal' => $wrap, match ($alignment) { @@ -67,5 +67,5 @@ ]) /> @endif - +