fix(sidebar): raise contrast on 'Don't ask again' checkbox in delete worktree dialog (#831)

This commit is contained in:
Jinjing 2026-04-19 09:40:11 -07:00 committed by GitHub
parent b8b773e892
commit 82bbc48932
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,13 +207,13 @@ const DeleteWorktreeDialog = React.memo(function DeleteWorktreeDialog() {
role="checkbox"
aria-checked={dontAskAgain}
onClick={() => setDontAskAgain((prev) => !prev)}
className="flex items-center gap-2 rounded-sm px-1 py-1 text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
className="flex items-center gap-2 rounded-sm px-1 py-1 text-xs text-foreground/80 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
>
<span
className={`flex size-4 items-center justify-center rounded-sm border transition-colors ${
dontAskAgain
? 'border-foreground bg-foreground text-background'
: 'border-muted-foreground/50 bg-transparent'
: 'border-muted-foreground bg-transparent'
}`}
>
{dontAskAgain ? <Check className="size-3" strokeWidth={3} /> : null}