feat: add subtle toggle variant (outline-only state change), use it for team chips at h-6

This commit is contained in:
Taylor Ho
2026-05-20 22:36:32 -07:00
parent afa4abd3dd
commit cb7b83b85a
2 changed files with 4 additions and 2 deletions

View File

@@ -554,13 +554,13 @@ export function QuickAddAgentPopover({
className="shrink-0"
>
<Toggle
className="h-8 rounded-full px-3 text-xs"
className="h-6 rounded-full px-2.5 text-[11px]"
onPressedChange={(pressed) =>
handleTeamToggle(team, pressed)
}
pressed={selectedTeamIds.has(team.id)}
size="sm"
variant="outline"
variant="subtle"
>
{team.name}
</Toggle>

View File

@@ -12,6 +12,8 @@ const toggleVariants = cva(
default: "bg-transparent",
outline:
"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",
subtle:
"border border-input bg-transparent data-[state=on]:!bg-transparent data-[state=on]:border-accent-foreground data-[state=on]:!text-accent-foreground",
},
size: {
default: "h-9 px-3 min-w-9",