Closed markgov closed 1 year ago
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.
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.
What
Why
Anything else