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:
@@ -80,17 +80,16 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-md space-y-6 p-4 sm:p-6 sm:pt-16">
|
||||
<flux:heading size="xl" level="1">{{ __('auth.login_title') }}</flux:heading>
|
||||
<h1 class="text-2xl font-semibold">{{ __('auth.login_title') }}</h1>
|
||||
|
||||
@if ($accessEnded)
|
||||
{{-- Not variant="warning": its yellow heading is only 2.8:1 on the light background. --}}
|
||||
<flux:callout icon="exclamation-triangle" role="status" :heading="__('auth.account_disabled')" />
|
||||
<x-alert role="status" color="yellow" light icon="exclamation-triangle" :text="__('auth.account_disabled')" />
|
||||
@elseif (session('status'))
|
||||
<flux:callout variant="success" icon="information-circle" role="status" :heading="session('status')" />
|
||||
<x-alert role="status" color="green" light icon="information-circle" :text="session('status')" />
|
||||
@endif
|
||||
|
||||
<form wire:submit="login" class="space-y-6" novalidate>
|
||||
<flux:input
|
||||
<x-input
|
||||
wire:model="email"
|
||||
type="email"
|
||||
:label="__('auth.email')"
|
||||
@@ -98,20 +97,18 @@ new class extends Component
|
||||
required
|
||||
/>
|
||||
|
||||
<flux:input
|
||||
<x-password-field
|
||||
wire:model="password"
|
||||
type="password"
|
||||
:label="__('auth.password_label')"
|
||||
autocomplete="current-password"
|
||||
viewable
|
||||
required
|
||||
/>
|
||||
|
||||
<flux:checkbox wire:model="remember" :label="__('auth.remember')" />
|
||||
<x-checkbox wire:model="remember" :label="__('auth.remember')" />
|
||||
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
<flux:button type="submit" variant="primary">{{ __('auth.login') }}</flux:button>
|
||||
<flux:link :href="route('password.request')" wire:navigate>{{ __('auth.forgot_password') }}</flux:link>
|
||||
<x-button submit :text="__('auth.login')" />
|
||||
<x-link :href="route('password.request')" navigate :text="__('auth.forgot_password')" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user