fix<Input.OTP>: wrong caret color (#54588)

Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
This commit is contained in:
ug 2025-08-05 10:24:04 +08:00 committed by GitHub
parent 46c9c93773
commit f5f8967148
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ const genOTPStyle: GenerateStyle<InputToken> = (token) => {
},
[`${componentCls}-mask-input`]: {
color: 'transparent',
caretColor: 'var(--ant-color-text)',
caretColor: token.colorText,
},
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
'-webkit-appearance': 'none',