You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature request is mainly targeted to the behavior after the autofill feature of the browser is activated.
When a n-input component is autofilled, browsers will add a special background color to the input box through User Agent CSS.
Problem is that the added background color does not suit some of the n-input component very well, for example when the input box has a prefix or suffix icon, or when the input box is in dark mode. They look a little bit weird.
Something like this: I believe the autofilled white background color should expand to the whole input box, but here the background of the suffix icon is still dark.
I am looking forward to an API that enables me to modify the autofill background color, or just simply disable it.
Also if naive-ui would like to work on this problem and make the autofill background expand to cover the whole input box, that would be nice too!
This function solves the problem (这个功能解决的问题)
This feature request is mainly targeted to the behavior after the autofill feature of the browser is activated.
When a n-input component is autofilled, browsers will add a special background color to the input box through User Agent CSS.
Problem is that the added background color does not suit some of the n-input component very well, for example when the input box has a prefix or suffix icon, or when the input box is in dark mode. They look a little bit weird.
Something like this: I believe the autofilled white background color should expand to the whole input box, but here the background of the suffix icon is still dark.
![image](https://private-user-images.githubusercontent.com/85970705/257563295-f29f228b-5c30-47a1-bf30-ee3060c5c559.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTcxMDIsIm5iZiI6MTczOTE1NjgwMiwicGF0aCI6Ii84NTk3MDcwNS8yNTc1NjMyOTUtZjI5ZjIyOGItNWMzMC00N2ExLWJmMzAtZWUzMDYwYzVjNTU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAzMDY0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzNGFjN2VhZTg2MWRmY2NmODRhYmMwZDQ4ZjIwZjFlMzc3ZDA5NzhmODNmN2ZkODVlZTJlZTQyNjQ3MWJlODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KH3sUeZPKPCmv76f6Tnm8xRvYic_iK3YBOGHSxlKPiM)
I am looking forward to an API that enables me to modify the autofill background color, or just simply disable it.
Also if naive-ui would like to work on this problem and make the autofill background expand to cover the whole input box, that would be nice too!
Expected API (期望的 API)
The text was updated successfully, but these errors were encountered: