Skip to content

Commit 1ef9cb4

Browse files
committed
Exclude default and fix test
1 parent ddc9b98 commit 1ef9cb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/components/table/th.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
{{
2626
$attributes->merge($customSortButtonAttributes)
2727
->class(['flex items-center space-x-1 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider group focus:outline-none dark:text-gray-400' => $customSortButtonAttributes['default'] ?? true])
28+
->except('default')
2829
}}
2930
>
3031
<span>{{ $column->getTitle() }}</span>

tests/Traits/Visuals/SortingVisualsTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public function th_headers_are_buttons_with_sorting_enabled(): void
1414
Livewire::test(PetsTable::class)
1515
->assertSeeHtml('<button
1616
wire:click="sortBy(\'id\')"
17-
class="flex items-center space-x-1 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider group focus:outline-none dark:text-gray-400"
18-
>');
17+
class="flex items-center space-x-1 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider group focus:outline-none dark:text-gray-400"');
1918
}
2019

2120
/** @test */

0 commit comments

Comments
 (0)