Show a task card's actions above tabs for notes, images and materials
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]>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{{--
|
||||
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>
|
||||
Reference in New Issue
Block a user