TypeScript
Show a focus ring on sidebar thread and draft rows (#13344)
Ryan Ilano92f0af24a359
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsxindex 4b8027c1410..968fd0a5f31 100644--- a/apps/web/src/components/Sidebar.tsx+++ b/apps/web/src/components/Sidebar.tsx@@ -755,7 +755,7 @@ const SidebarDraftRow = memo(function SidebarDraftRow(props: {tabIndex={0}data-testid="sidebar-draft-row"className={cn(- "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left text-sidebar-foreground outline-none select-none",+ "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left text-sidebar-foreground outline-none select-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",props.isActive ? "bg-sidebar-row-active" : draftSurfaceClassName,)}onClick={handleActivate}@@ -1390,7 +1390,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {// a useful hierarchy nor a reliable hover cue. Status now lives in the row// content; surface is reserved for interaction (hover, multi-select, route).const rowSurfaceClassName = cn(- "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left outline-none select-none",+ "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left outline-none select-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",variantAction === "unsettle" && "[&:not(:hover):not(:focus-within)_*]:text-secondary-label/70",props.isActive? "bg-sidebar-row-active text-sidebar-foreground"