mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 12:15:32 +08:00
fix(styles): remove background of webkit autofill
This commit is contained in:
@@ -115,6 +115,13 @@ const Textarea: React.FC<React.PropsWithChildren<TextareaProps>> = ({
|
||||
.disabled > textarea {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
textarea:-webkit-autofill,
|
||||
textarea:-webkit-autofill:hover,
|
||||
textarea:-webkit-autofill:active,
|
||||
textarea:-webkit-autofill:focus {
|
||||
-webkit-box-shadow: 0 0 0 30px ${theme.palette.background} inset !important;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user