Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PasswordInput] Override browser styles for input #141

Open
chervyakovru opened this issue Feb 2, 2024 · 0 comments
Open

[PasswordInput] Override browser styles for input #141

chervyakovru opened this issue Feb 2, 2024 · 0 comments

Comments

@chervyakovru
Copy link
Contributor

Browsers provide default styles to generate a password in the new-password type input. If the user agrees, the browser add yellow background to the input. Safari hides part of the generated password at the same time

Suggestion

  1. Remove the yellow background at all.
  2. By default, leave the standard behavior in the browser - suggestions to generate a password
  3. If we display the Generate password button, we disable the browser offer to generate a password

Current behavior

image
image
image

Suggested behavior

image
image
image

Note

need to check in all major browsers and OS
An example of an input with the proposed behavior: https://github.com/signup
source: https://github.com/gravity-ui/components/tree/main/src/components/PasswordInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant