The opened task card keeps its details and description at the top, then the status, book hours, edit and remove actions, and below them tabs: checklist and comments, images, and materials and machines. The tabs are a project component (x-tabs) after the WAI-ARIA pattern, because TallStackUI's tab ties its panels to missing ids and has no arrow keys. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
22 lines
614 B
PHP
22 lines
614 B
PHP
{{--
|
|
One panel of <x-tabs>: $tabsId is the id given to <x-tabs>, $name the key of
|
|
its tab. The panel is always rendered and only hidden, so Livewire components
|
|
in it keep their state.
|
|
--}}
|
|
@props([
|
|
'tabsId',
|
|
'name',
|
|
])
|
|
|
|
<div
|
|
{{ $attributes->class('rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400') }}
|
|
role="tabpanel"
|
|
id="{{ $tabsId }}-panel-{{ $name }}"
|
|
aria-labelledby="{{ $tabsId }}-tab-{{ $name }}"
|
|
tabindex="0"
|
|
x-show="selected === @js($name)"
|
|
x-cloak
|
|
>
|
|
{{ $slot }}
|
|
</div>
|