fix: improve interactive accent contrast (#2075)

This commit is contained in:
José Almeida
2026-07-31 10:55:29 +01:00
committed by GitHub
parent 6bcd4fe711
commit d46ec16770
40 changed files with 213 additions and 84 deletions
@@ -93,10 +93,10 @@ export function FileRow({
data-selected={isSelected ? "true" : "false"}
data-active={isActive ? "true" : "false"}
className={cn(
"group flex items-center justify-between gap-2 text-sm rounded-md px-2 py-1.5 -mx-1 cursor-pointer",
"group flex items-center justify-between gap-2 rounded-md border border-transparent px-2 py-1.5 -mx-1 text-sm cursor-pointer",
"md:px-1 md:py-0.5",
isSelected || isActive
? "bg-accent/60 text-accent-foreground hover:bg-accent/50"
? "border-primary/50 bg-card text-foreground hover:bg-muted/70"
: "hover:bg-muted/60",
)}
onClick={handleClick}