Skip to content

Commit

Permalink
5.2.2 (#116)
Browse files Browse the repository at this point in the history
* Fixed filter reset button missing margin-top class for Bootstrap 4 & 5 templates
  • Loading branch information
Okipa authored Jan 1, 2023
1 parent 77ba56e commit e880029
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this package will be documented in this file.

## [5.2.2](https://github.com/Okipa/laravel-table/compare/5.2.1...5.2.2)

2023-01-01

* Fixed filter reset button missing margin-top class for Bootstrap 4 & 5 templates

## [5.2.1](https://github.com/Okipa/laravel-table/compare/5.2.0...5.2.1)

2022-11-14
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-4/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@endforeach
@if(collect($this->selectedFilters)->filter(fn(mixed $filter) => isset($filter) && $filter !== '' && $filter !== [])->isNotEmpty())
<a wire:click.prevent="resetFilters()"
class="btn btn-outline-secondary ml-3"
class="btn btn-outline-secondary ml-3 mt-2"
title="{{ __('Reset filters') }}"
data-toggle="tooltip">
{!! config('laravel-table.icon.reset') !!}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@endforeach
@if(collect($this->selectedFilters)->filter(fn(mixed $filter) => isset($filter) && $filter !== '' && $filter !== [])->isNotEmpty())
<a wire:click.prevent="resetFilters()"
class="btn btn-outline-secondary ms-3"
class="btn btn-outline-secondary ms-3 mt-2"
title="{{ __('Reset filters') }}"
data-bs-toggle="tooltip">
{!! config('laravel-table.icon.reset') !!}
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Bootstrap4/TableFiltersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ml-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ml-3"',
' class="btn btn-outline-secondary ml-3 mt-2"',
' title="Reset filters"',
' data-toggle="tooltip">',
'reset-icon',
Expand All @@ -298,7 +298,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ml-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ml-3"',
' class="btn btn-outline-secondary ml-3 mt-2"',
' title="Reset filters"',
' data-toggle="tooltip">',
'reset-icon',
Expand All @@ -309,7 +309,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ml-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ml-3"',
' class="btn btn-outline-secondary ml-3 mt-2"',
' title="Reset filters"',
' data-toggle="tooltip">',
'reset-icon',
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Bootstrap5/TableFiltersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ms-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ms-3"',
' class="btn btn-outline-secondary ms-3 mt-2"',
' title="Reset filters"',
' data-bs-toggle="tooltip">',
'reset-icon',
Expand All @@ -307,7 +307,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ms-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ms-3"',
' class="btn btn-outline-secondary ms-3 mt-2"',
' title="Reset filters"',
' data-bs-toggle="tooltip">',
'reset-icon',
Expand All @@ -318,7 +318,7 @@ protected function columns(): array
'<div wire:ignore>',
'<div wire:key="filter-boolean-active" class="ms-3 mt-2">',
'<a wire:click.prevent="resetFilters()"',
' class="btn btn-outline-secondary ms-3"',
' class="btn btn-outline-secondary ms-3 mt-2"',
' title="Reset filters"',
' data-bs-toggle="tooltip">',
'reset-icon',
Expand Down

0 comments on commit e880029

Please sign in to comment.