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:
2026-11-22 12:22:03 +02:00
co-authored by Claude Opus 5.5
parent 7b6a909677
commit 90d6f5bd66
35 changed files with 1054 additions and 448 deletions
+4 -4
View File
@@ -17,14 +17,14 @@ it('switches to the dark theme and back, and remembers the choice', function ()
->assertScript('document.documentElement.classList.contains("dark")', true)
->assertAttribute(THEME_TOGGLE, 'aria-pressed', 'true')
->assertAttribute(THEME_TOGGLE, 'aria-label', 'Tumma teema')
->assertScript('localStorage.getItem("flux.appearance")', 'dark')
->assertScript('localStorage.getItem("dark-theme")', 'dark')
->assertNoAccessibilityIssues(level: 2);
$page->navigate(route('password.request'))
->assertScript('document.documentElement.classList.contains("dark")', true)
->click(THEME_TOGGLE)
->assertScript('document.documentElement.classList.contains("dark")', false)
->assertScript('localStorage.getItem("flux.appearance")', 'light')
->assertScript('localStorage.getItem("dark-theme")', 'light')
->assertNoAccessibilityIssues(level: 2);
});
@@ -34,7 +34,7 @@ it('overrides a dark system theme', function () {
->assertAttribute(THEME_TOGGLE, 'aria-pressed', 'true')
->click(THEME_TOGGLE)
->assertScript('document.documentElement.classList.contains("dark")', false)
->assertScript('localStorage.getItem("flux.appearance")', 'light');
->assertScript('localStorage.getItem("dark-theme")', 'light');
});
it('is in the header for signed-in users and works with the keyboard', function () {
@@ -44,5 +44,5 @@ it('is in the header for signed-in users and works with the keyboard', function
->assertPresent('header '.THEME_TOGGLE)
->keys(THEME_TOGGLE, 'Enter')
->assertScript('document.documentElement.classList.contains("dark")', true)
->assertScript('localStorage.getItem("flux.appearance")', 'dark');
->assertScript('localStorage.getItem("dark-theme")', 'dark');
});
+12
View File
@@ -80,6 +80,18 @@ it('sends a user who is deactivated mid-session to the login page with the reaso
->assertNoAccessibilityIssues(level: 2);
});
it('shows and hides the password with a named toggle button', function () {
$toggle = '[aria-label="Näytä salasana"]';
visit(route('login'))
->assertAttribute('[wire\\:model="password"]', 'type', 'password')
->assertAttribute($toggle, 'aria-pressed', 'false')
->click($toggle)
->assertAttribute('[wire\\:model="password"]', 'type', 'text')
->assertAttribute($toggle, 'aria-pressed', 'true')
->assertAttribute($toggle, 'aria-label', 'Näytä salasana');
});
it('logs in with the keyboard alone', function () {
User::factory()->create(['email' => '[email protected]']);