Files
Toiminnanohjaus/resources/views/components/password-field.blade.php
T
petriandClaude Opus 5.5 f4b58f6b1d Darken the dark canvas, add customer colours, the ongoing status and the board model
- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 /
  primary-100 and TallStackUI's dark labels, hints and checkbox labels are
  lightened so everything stays at 4.5:1.
- Shared HexColor picks white or black text by the higher WCAG contrast; a
  native-dialog colour picker and a large work dialog component.
- Customers get a header colour (customers.header_color), set on the
  customer page.
- New job status Jatkuvat / Kausi (ongoing): open, never late, billed
  monthly like running jobs.
- Kanban model: board columns and views, urgent threshold, per-user board
  preferences (density, column colours and sort), card positions, tasks of
  continuing jobs pinned to the board, MoveBoardCard and board queries with
  logged hours from TimeTracking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 06:11:49 +02:00

35 lines
1.3 KiB
PHP

{{--
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-primary-600 dark:focus-visible:outline-primary-300 dark:text-zinc-200 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>