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

Use password input component #3176

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Use password input component #3176

merged 3 commits into from
Sep 19, 2024

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Sep 19, 2024

Trello

Updates the login screen to use the new password input from GOV.UK Publishing Components (an implementation of the component added in GOV.UK Design System v5)

  • Updates govuk_publishing_components to 43.3.0
  • Switches to the password input from the gem
  • Customises some styles to work well in context

Screenshots

Login screen

Before

image

After

image

Create/invite new user screen (no changes expected)

Before

image

After

image


This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

This includes an update to the password input to allow a custom name,
which we need for Devise compatibility (without undue hacking)
There's now a password input component in govuk_publishing_components,
implementing the password input from GOV.UK Design System v5. This adds
a show/hide password button when JavaScript is enabled, which has
previously been requested by a Signon user for accessibility purposes
The show/hide button cuts into the space for the password input. In
order for the email and password inputs to stay the same width, we need
to add padding to the email input's wrapper equal to the space taken up
by the show/hide button (including margin)

We only want this change to apply to the signin form, not anywhere we
have an email input, like on the create/invite new user page. I've used
the form action in the selector to make this specific, which is a bit
unconventional - we could add and use a class instead, but this works
without changing the template. It is however reliant on the Device new
session path not changing
Copy link
Member

@brucebolt brucebolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍. Should be a good improvement for users.

@yndajas yndajas merged commit 46b60a6 into main Sep 19, 2024
16 checks passed
@yndajas yndajas deleted the use-password-input-component branch September 19, 2024 11:04
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

Successfully merging this pull request may close these issues.

2 participants