From 02ecd420390f26f4b3e601fb478f203bcf6e6ad8 Mon Sep 17 00:00:00 2001 From: Urvish Date: Tue, 1 Dec 2026 13:00:20 +0530 Subject: [PATCH] fix(coupons): prevent % suffix from overlapping number input spinners --- src/components/coupons/CouponModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/coupons/CouponModal.tsx b/src/components/coupons/CouponModal.tsx index 88ed9e4..dfd96c5 100644 --- a/src/components/coupons/CouponModal.tsx +++ b/src/components/coupons/CouponModal.tsx @@ -138,9 +138,9 @@ export const CouponModal: React.FC = ({ value={data.discountValue} onChange={(e) => onChange('discountValue', e.target.value)} placeholder="e.g. 20" - className="w-full bg-white border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 focus:outline-none focus:border-indigo-500" + className="w-full bg-white border border-slate-200 rounded-xl pl-3 pr-7 py-2 text-xs font-bold text-slate-800 focus:outline-none focus:border-indigo-500 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" /> - % + %