Skip to content

Commit

Permalink
fix: Incorrect user-interaction of input box component
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-guan authored and goldmermaid committed Dec 29, 2024
1 parent 0b7a3a1 commit 907c8b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/components/inputs/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const Input = ({
rounded-md
outline-none
transition
disabled: opacity-70
disabled: cursor-not-allowed
disabled:opacity-70
disabled:cursor-not-allowed
${formatPrice ? 'pl-9' : 'pl-4'}
${errors[id] ? 'border-rose-500' : 'border-neutral-300'}
${errors[id] ? 'focus:border-rose-500' : 'focus:border-black'}
Expand All @@ -72,11 +72,12 @@ const Input = ({
top-5
z-10
origin-[0]
${formatPrice ? 'left-9' : 'left-4'}
pointer-events-none
peer-placeholder-shown:scale-100
peer-placeholder-shown:translate-y-0
peer-focus:scale-75
peer-focus:-translate-y-4
${formatPrice ? 'left-9' : 'left-4'}
${errors[id] ? 'text-rose-500' : 'text-zinc-400'}
`}
>
Expand Down

0 comments on commit 907c8b3

Please sign in to comment.