fix: use fixed tailwind classes for chips icon

This commit is contained in:
Paulhenry Saux
2026-07-20 20:23:11 +02:00
committed by Linus Rath
parent 2cb5c739b4
commit 18e9cf6ee6
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -3255,7 +3255,16 @@ function RecipientChipInput({
onContextMenu={isEditing ? undefined : (e) => handleContextMenu(e, i, chip)}
>
{IconComponent ? (
<IconComponent className={`w-4 h-4 text-${customColor}`} />
<IconComponent
className={cn(
"w-4 h-4",
customColor === "success"
? "text-success"
: customColor === "warning"
? "text-warning"
: "text-destructive"
)}
/>
) : null}
{isEditing ? (