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

can find a password input mask #265

Closed
markgov opened this issue Nov 4, 2022 · 2 comments
Closed

can find a password input mask #265

markgov opened this issue Nov 4, 2022 · 2 comments

Comments

@markgov
Copy link

markgov commented Nov 4, 2022

What

Hi not sure if there is or is not a an input mask that masks users input when entering a password

Why

Explain why you think this should be added to the GOV.UK Design System.
needed if you want to create login prompts and web based password resets

Anything else

Include links to any examples, research or code to support your proposal, if available.

@domoscargin
Copy link

Hi @markgov,

Thanks for your contribution. I think what you're describing matches up to the "Show Password" component, so I'll close this and point you over there to add your findings and need.

If it's not the same thing at all, please feel free to open another issue with more detail.

@querkmachine
Copy link
Member

The masking of text in password inputs is a browser feature, not one implemented specifically by the GOV.UK Design System.

If you're using our Nunjucks macros, you can activate this with our Text Input component by setting the type parameter to password.

{{ govukInput({
  type: "password",
  autocomplete: "current-password",
  id: "password",
  name: "password",
  label: {
    text: "Enter your password"
  }
}) }}

You may also want to set the autocomplete parameter to either new-password or current-password, depending on the context.

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

3 participants