fix(coupons): prevent % suffix from overlapping number input spinners #71

Merged
amit merged 1 commits from fix/coupon-discount-percent-overlap into main 2026-12-02 05:01:22 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -138,9 +138,9 @@ export const CouponModal: React.FC<CouponModalProps> = ({
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"
/>
<span className="absolute right-3 top-2 text-xs font-bold text-slate-400">%</span>
<span className="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold text-slate-400 pointer-events-none">%</span>
</div>
</div>
<div>