Skip to content

Commit

Permalink
Adjust behaviour for Bulk Actions TH
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 11, 2024
1 parent 3f76d63 commit 99c202d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/table/th/plain.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<th x-cloak {{ $attributes }} scope="col"
{{
$attributes->merge($customAttributes)->class([
'table-cell px-3 py-2 md:px-6 md:py-3 text-center md:text-left bg-gray-50 dark:bg-gray-800 laravel-livewire-tables-reorderingMinimised' => ($isTailwind) && ($customAttributes['default'] ?? true),
'laravel-livewire-tables-reorderingMinimised' => ($isBootstrap) && ($customAttributes['default'] ?? true),
'table-cell px-3 py-2 md:px-6 md:py-3 text-center md:text-left bg-gray-50 dark:bg-gray-800 laravel-livewire-tables-reorderingMinimised' => ($isTailwind) && ($customAttributes['default-colors'] ?? true || $customAttributes['default'] ?? true),
'laravel-livewire-tables-reorderingMinimised' => ($isBootstrap) && ($customAttributes['default-colors'] ?? true || $customAttributes['default'] ?? true),
])
}}
@if($hideUntilReorder) :class="!reorderDisplayColumn && 'w-0 p-0 hidden'" @endif
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Styling/Helpers/BulkActionStylingHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getBulkActionsThAttributes(): array
#[Computed]
public function hasBulkActionsThAttributes(): bool
{
return $this->getBulkActionsThAttributes() != ['default' => true];
return $this->getBulkActionsThAttributes() != ['default' => true, 'default-colors' => false, 'default-styling' => false];
}

/**
Expand Down

0 comments on commit 99c202d

Please sign in to comment.