Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
megawubs committed Dec 2, 2024
1 parent cda61e7 commit c99f0c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/tables/resources/views/components/header-cell.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ 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="match (true) {
:icon="
match (true) {
$activelySorted && $sortDirection === 'asc' => 'heroicon-m-chevron-up',
$activelySorted && $sortDirection === 'desc' => 'heroicon-m-chevron-down',
!$activelySorted => 'heroicon-m-chevron-up-down'
}"
$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 c99f0c7

Please sign in to comment.