fix(liste): + satır düğmesi className'i cn() ile birleştirir, boyut sınıfı çakışmaz

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-10-30 01:56:41 +03:00
parent 68502394ce
commit a58a446b93

View File

@@ -207,11 +207,16 @@ export function ProgramEkleButonu({
? `Seçtiklerin dolu (${MANUEL_LISTE_MAX}/${MANUEL_LISTE_MAX})`
: "Seçtiklerime ekle"
}
className={`inline-flex ${SATIR_DUGME_BOYU} cursor-pointer items-center justify-center rounded-full border transition-[background-color,border-color,color,transform] duration-150 active:scale-[0.92] disabled:cursor-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${
// cn(): dışarıdan gelen className (ör. boyut) tabanı gerçekten ezsin;
// düz şablonda iki boyut sınıfı birden DOM'a girip CSS sırasına kalıyordu.
className={cn(
"inline-flex cursor-pointer items-center justify-center rounded-full border transition-[background-color,border-color,color,transform] duration-150 active:scale-[0.92] disabled:cursor-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
SATIR_DUGME_BOYU,
listede
? "border-emerald-200 bg-emerald-50 text-emerald-600"
: "border-slate-200 bg-card text-slate-500 hover:border-orange-500 hover:bg-orange-50/60 hover:text-orange-500 disabled:opacity-40"
} ${className}`}
: "border-slate-200 bg-card text-slate-500 hover:border-orange-500 hover:bg-orange-50/60 hover:text-orange-500 disabled:opacity-40",
className,
)}
>
{isaret}
<span className="sr-only">