Skip to content

Commit

Permalink
Add icon indicating that there is no active sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
megawubs committed Dec 2, 2024
1 parent 8069915 commit cda61e7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class="fi-ta-header-cell-label text-sm font-semibold text-gray-950 dark:text-whi
@if ($sortable)
<x-filament::icon
:alias="$activelySorted && $sortDirection === 'asc' ? 'tables::header-cell.sort-asc-button' : 'tables::header-cell.sort-desc-button'"
:icon="$activelySorted && $sortDirection === 'asc' ? 'heroicon-m-chevron-up' : 'heroicon-m-chevron-down'"
:icon="match (true) {
$activelySorted && $sortDirection === 'asc' => 'heroicon-m-chevron-up',
$activelySorted && $sortDirection === 'desc' => 'heroicon-m-chevron-down',
!$activelySorted => 'heroicon-m-chevron-up-down'
}"
@class([
'fi-ta-header-cell-sort-icon h-5 w-5 shrink-0 transition duration-75',
'text-gray-950 dark:text-white' => $activelySorted,
Expand Down

0 comments on commit cda61e7

Please sign in to comment.