Skip to content

Commit

Permalink
Minor Localisation Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Nov 10, 2024
1 parent a6a6b05 commit d93e285
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@aware(['isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@if ($isTailwind)
<button
wire:click.prevent="setFilterDefaults"
@class([
"focus:outline-none active:outline-none"
])>
<span @class([
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
"bg-gray-100 text-gray-800 dark:bg-gray-200 dark:text-gray-900"
])>
{{ __('livewire-tables::core.Clear') }}
</span>
</button>
@else
<a
href="#"
wire:click.prevent="setFilterDefaults"
@class([
'badge badge-pill badge-light' => $isBootstrap4,
'badge rounded-pill bg-light text-dark text-decoration-none' => $isBootstrap5,
])>
{{ __('livewire-tables::core.Clear') }}
</a>
@endif
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:bg-indigo-500 focus:text-white",
])
>
<span class="sr-only">@lang('livewire-tables::Remove filter option')</span>
<span class="sr-only">{{ __('livewire-tables::core.Remove filter option') }}</span>
<x-heroicon-m-x-mark class="h-full" />
</button>
@else
Expand All @@ -23,9 +23,8 @@
<span @class([
'sr-only' => $isBootstrap4,
'visually-hidden' => $isBootstrap5,
])>
@lang('livewire-tables::Remove filter option')
</span>
])>{{ __('livewire-tables::core.Remove filter option') }}
</span>
<x-heroicon-m-x-mark class="laravel-livewire-tables-btn-tiny" />
</a>
@endif
Expand Down

0 comments on commit d93e285

Please sign in to comment.