Rewrite the layout and all Customers and Users pages with TallStackUI components and remove livewire/flux and its Boost skill. Fix the TallStackUI accessibility gaps found by the axe tests: - password reveal and theme switch have no accessible name: add <x-password-field> and keep the own theme toggle button - select.native label is not tied to the control: add aria-label - contrast: darker primary palette, soft-customized error colours and published alert/link colour classes; neutral buttons use subtle black - follow the system theme by default (localStorage key dark-theme) Load TallStackUI assets from the app URL so they work in the XAMPP subfolder, add Finnish TallStackUI strings, and drop inputmode=numeric from the business ID field so iOS keyboards show the hyphen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16 lines
670 B
PHP
16 lines
670 B
PHP
{{-- Main menu link. The current page is marked with aria-current and an underline, not colour alone. --}}
|
|
@php($current = request()->routeIs($pattern))
|
|
|
|
<a
|
|
href="{{ route($route) }}"
|
|
wire:navigate
|
|
@if ($current) aria-current="page" @endif
|
|
@class([
|
|
'rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700',
|
|
'text-zinc-900 underline decoration-2 underline-offset-8 dark:text-white' => $current,
|
|
'text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-700 dark:hover:text-white' => ! $current,
|
|
])
|
|
>
|
|
{{ $label }}
|
|
</a>
|