Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to `livewire-datatables` will be documented in this file

## 3.2.6 ( 2026-09-26 )

### What's Changed

- Show the pointer cursor on table action buttons and every removable filter badge.
- Use the Apricode ink color for text and icons on gray filter badges, with white content on hover.

## 3.2.5 ( 2026-09-26 )

### What's Changed
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/datatables/filters/boolean.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class="m-1 text-sm leading-4 block rounded-md border-gray-300 shadow-sm focus:bo
@isset($this->activeBooleanFilters[$index])
@if($this->activeBooleanFilters[$index] == 1)
<button wire:click="removeBooleanFilter('{{ $index }}')"
class="m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
class="ld-filter-badge m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<span>{{ __('YES') }}</span>
<x-icons.x-circle />
</button>
@elseif(strlen($this->activeBooleanFilters[$index]) > 0)
<button wire:click="removeBooleanFilter('{{ $index }}')"
class="m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
class="ld-filter-badge m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<span>{{ __('No') }}</span>
<x-icons.x-circle />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class="pr-8 m-1 text-sm leading-4 block rounded-md border-gray-300 shadow-sm foc
/>
<div class="flex flex-wrap max-w-48 space-x-1">
@foreach($this->activeTextFilters[$index] ?? [] as $key => $value)
<button wire:click="removeTextFilter('{{ $index }}', '{{ $key }}')" class="m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<button wire:click="removeTextFilter('{{ $index }}', '{{ $key }}')" class="ld-filter-badge m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<span>{{ $this->getDisplayValue($index, $value) }}</span>
<x-icons.x-circle class="h-5 w-5 stroke-current text-red-500" />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class="m-1 text-sm leading-4 block rounded-md border-gray-300 shadow-sm focus:bo
/>
<div class="flex flex-wrap max-w-48 space-x-1">
@foreach($this->activeTextFilters[$index] ?? [] as $key => $value)
<button wire:click="removeTextFilter('{{ $index }}', '{{ $key }}')" class="m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<button wire:click="removeTextFilter('{{ $index }}', '{{ $key }}')" class="ld-filter-badge m-1 pl-1 flex items-center uppercase tracking-wide bg-gray-300 text-white hover:bg-red-600 rounded-full focus:outline-none text-xs space-x-1">
<span>{{ $this->getDisplayValue($index, $value) }}</span>
<x-icons.x-circle />
</button>
Expand Down
10 changes: 9 additions & 1 deletion resources/views/livewire/datatables/theme.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@
color: var(--ld-primary) !important;
}

.ld-table .ld-filter-badge {
.ld-table :is(.ld-button, .ld-filter-badge) {
cursor: pointer;
}

.ld-table .ld-filter-badge {
color: var(--ld-ink) !important;
}

.ld-table .ld-filter-badge:hover {
color: var(--ld-white) !important;
}

.ld-table .ld-toolbar {
gap: .75rem;
margin-bottom: .75rem;
Expand Down
Loading