Skip to content

Commit

Permalink
fix(input): use color not text for autofillStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Mar 18, 2024
1 parent 0964e81 commit 968a23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/input-otp/src/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const OTPInput = React.forwardRef<HTMLInputElement, OTPInputProps>(

if (styleEl.sheet) {
const autofillStyles =
'background: transparent !important; text: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;'
'background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;'

safeInsertRule(
styleEl.sheet,
Expand Down

0 comments on commit 968a23b

Please sign in to comment.