From dc17c47dc65d9500aa4026a10597669db01985e5 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Wed, 10 Jun 2026 22:44:26 -0700 Subject: [PATCH] Refine add project selection styling (#5160) Co-authored-by: Orca --- .../components/sidebar/AddRepoStartSteps.tsx | 48 +++++++------------ 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/src/renderer/src/components/sidebar/AddRepoStartSteps.tsx b/src/renderer/src/components/sidebar/AddRepoStartSteps.tsx index 01e26e0b0..20b259eaa 100644 --- a/src/renderer/src/components/sidebar/AddRepoStartSteps.tsx +++ b/src/renderer/src/components/sidebar/AddRepoStartSteps.tsx @@ -191,7 +191,10 @@ export function AddRepoLocalStartStep({ selected={selectedKind === action.kind} onClick={action.onClick} onFocus={() => setSelectedKind(action.kind)} - className={index === 0 ? '' : 'border-t border-border/70'} + className={cn( + index === 0 ? 'rounded-t-md' : 'border-t border-border/70', + index === secondaryActions.length - 1 && 'rounded-b-md' + )} /> ))} @@ -215,7 +218,7 @@ type AddRepoStartActionProps = { title: string description: string disabled: boolean - // Selected = keyboard-focused: renders the white fill + trailing ⏎ chip so Enter's target is obvious. + // Selected = keyboard-focused: renders the selection wash + trailing ⏎ chip so Enter's target is obvious. selected: boolean onClick: () => void onFocus: () => void @@ -227,7 +230,7 @@ const AddRepoEnterChip = (): React.JSX.Element => ( ) @@ -242,42 +245,34 @@ const AddRepoPrimaryStartAction = ({ onFocus, buttonRef }: AddRepoStartActionProps): React.JSX.Element => ( - // Filled white surface marks the selected action; when unselected the card reverts to a quiet - // outline so the highlight reads as a moving selection, not a fixed badge. Inner tints switch to - // primary-foreground only while filled, because muted tokens are tuned for the dark base surface. + // A neutral wash marks the roving keyboard selection without making the row + // read like the committed primary action.