Merge pull request 'fix(coupons): prevent % suffix from overlapping number input spinners' (#71) from fix/coupon-discount-percent-overlap into main
Reviewed-on: https://git.zedobject.local/AcuPedia/acupedia-web-ui/pulls/71 Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
commit
1ca8551855
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue