Skip to content

Commit

Permalink
style readOnly correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Nov 27, 2024
1 parent fc730f3 commit 3c5d478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/popup/components/ui/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
description,
errorMessage,
disabled,
readOnly,
className,
id,
...props
Expand Down Expand Up @@ -86,7 +87,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
ref={ref}
type={type}
className={cn(
inputVariants({ disabled }),
inputVariants({ disabled, readOnly }),
addOn && (addOnPosition === 'left' ? 'pl-10' : 'pr-10'),
addOnRight && 'pr-10',
errorMessage && 'border-error',
Expand Down

0 comments on commit 3c5d478

Please sign in to comment.