Skip to content

Commit 333a240

Browse files
shivamhwpclaude
andcommitted
fix(web): checked projects hide their machine badge
A checked row already tells you which project it is, so the badge only crowds the checkbox. Screen readers still hear the machine. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 5f05aba commit 333a240

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/components/ProjectComboboxRow.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ export function ProjectRowLeading(props: {
6262
) : null}
6363
{props.machine ? (
6464
<span
65-
className={cn("absolute -right-1.5 -bottom-1 z-10 flex", selection && "cursor-pointer")}
65+
className={cn(
66+
"absolute -right-1.5 -bottom-1 z-10 flex",
67+
selection && "cursor-pointer",
68+
// Checked rows drop the badge visually but keep its label for screen readers.
69+
selection?.checked && "pointer-events-none opacity-0",
70+
)}
6671
{...toggleHandlers}
6772
>
6873
{props.machine}

0 commit comments

Comments
 (0)