Files
Toiminnanohjaus/resources/views/pages/⚡home.blade.php
T
petriandClaude Opus 5.5 d403a86443 Add WCAG 2.2 AA accessibility baseline and browser tests
- Layout: skip link to the main content and a <main> landmark
- Home page: stable button label, counter announced via a live status region
- Pest browser plugin + Playwright: axe checks (level 2) in light/dark and
  desktop/mobile, plus a keyboard-only interaction test
- Register the Browser test suite in phpunit.xml and Pest.php
- CLAUDE.md: accessibility development rules and browser test notes
- Boost-refreshed testing-best-practices skill files

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 09:45:13 +02:00

30 lines
720 B
PHP

<?php
use Livewire\Attributes\Title;
use Livewire\Component;
new #[Title('Toiminnanohjaus')] class extends Component
{
public int $clickCount = 0;
public function incrementClickCount(): void
{
$this->clickCount++;
}
};
?>
<div class="mx-auto max-w-xl space-y-6 p-6">
<flux:heading size="xl" level="1">Toiminnanohjaus</flux:heading>
<flux:text>Livewire ja Flux UI toimivat. Tämä on väliaikainen kokeilusivu.</flux:text>
<flux:button variant="primary" icon="plus" wire:click="incrementClickCount">
Lisää klikkaus
</flux:button>
<flux:text role="status" aria-live="polite" aria-atomic="true">
Klikattu {{ $clickCount }} kertaa
</flux:text>
</div>