diff --git a/packages/tables/resources/views/components/header-cell.blade.php b/packages/tables/resources/views/components/header-cell.blade.php index 74b47790a5..45daa37fb9 100644 --- a/packages/tables/resources/views/components/header-cell.blade.php +++ b/packages/tables/resources/views/components/header-cell.blade.php @@ -23,11 +23,11 @@ <{{ $sortable ? 'button' : 'span' }} @if ($sortable) type="button" - aria-label="{{$slot}}" + aria-label="{{ $slot }}" wire:click="sortTable('{{ $name }}')" @endif - @if($activelySorted) - aria-sort="{{ $sortDirection === 'asc' ? 'ascending' : 'descending'}}" + @if ($activelySorted) + aria-sort="{{ __($sortDirection === 'asc' ? 'filament-tables::table.sorting.fields.direction.options.asc' : 'filament-tables::table.sorting.fields.direction.options.desc') }}" @endif @class([ 'group flex w-full items-center gap-x-1',