Open sarawilcox opened 6 months ago
The Manage vaccinations in schools (Mavis) service has implemented this pattern. We’re largely importing this component as is, swapping out the govuk-*
for the nhsuk-*
namespace where relevant.
We’ve also made a few changes to make the secondary button component work for this use case, namely:
Without the adjustments:
With the adjustments:
The SCSS file that implements these adjustments can be found here: https://github.com/nhsuk/manage-vaccinations-in-schools/blob/main/app/assets/stylesheets/_password-input.scss
NHS Login has a show/hide feature:
Implemented as a button element positioned over the input.
Note the actual input has right padding so the field scrolls before being obscured by the button:
GOV.UK has a password input component to help users to create and enter passwords. https://design-system.service.gov.uk/components/password-input/