From dec6560cf0828ffdb3e57acbdd39bbb593983cc4 Mon Sep 17 00:00:00 2001 From: ner Date: Sat, 6 Jun 2026 22:32:06 +0300 Subject: [PATCH] fix: don't spread dnd-kit attributes onto sortable tab triggers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useSortable's `attributes` (role="button", tabIndex, aria-pressed) were overriding Radix Tabs.Trigger's own role="tab" and roving-tabindex management, producing an invalid ARIA tab/role combination that regressed the accessibility audit. `listeners` alone (onPointerDown / onKeyDown) is sufficient to drive the drag — the trigger is already a properly accessible, focusable element. Co-Authored-By: Claude Sonnet 4.6 --- components/Preview/components/Torrents/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/Preview/components/Torrents/index.tsx b/components/Preview/components/Torrents/index.tsx index 0a41454..cb8588d 100644 --- a/components/Preview/components/Torrents/index.tsx +++ b/components/Preview/components/Torrents/index.tsx @@ -27,7 +27,7 @@ const SortableTabsTrigger: FC<{ provider: (typeof providers)[ProviderKey]; isLoa provider, isLoading }) => { - const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: provider.key }); + const { listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: provider.key }); return ( {isLoading ? : provider.label}