Replace Flux UI with TallStackUI 4
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]>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{{--
|
||||
Password input with an accessible show/hide button.
|
||||
|
||||
Not <x-password />: TallStackUI's reveal button has no accessible name
|
||||
(WCAG 4.1.2), and soft customization cannot add one. The button keeps the
|
||||
stable name "Näytä salasana"; aria-pressed tells whether it is shown.
|
||||
--}}
|
||||
@props([
|
||||
'label',
|
||||
'hint' => null,
|
||||
])
|
||||
|
||||
<div x-data="{ shown: false }">
|
||||
<x-input
|
||||
:attributes="$attributes"
|
||||
:label="$label"
|
||||
:hint="$hint"
|
||||
type="password"
|
||||
x-bind:type="shown ? 'text' : 'password'"
|
||||
>
|
||||
<x-slot:suffix>
|
||||
<button
|
||||
type="button"
|
||||
x-on:click="shown = ! shown"
|
||||
x-bind:aria-pressed="shown ? 'true' : 'false'"
|
||||
aria-label="{{ __('auth.show_password') }}"
|
||||
class="flex size-8 items-center justify-center rounded-md text-zinc-600 hover:text-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-zinc-300 dark:hover:text-white"
|
||||
>
|
||||
<x-icon name="eye" class="size-5" x-show="! shown" aria-hidden="true" />
|
||||
<x-icon name="eye-slash" class="size-5" x-show="shown" x-cloak aria-hidden="true" />
|
||||
</button>
|
||||
</x-slot:suffix>
|
||||
</x-input>
|
||||
</div>
|
||||
Reference in New Issue
Block a user