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

Review usage of the error-message component #3488

Closed
MartinJJones opened this issue Jul 6, 2023 · 2 comments · Fixed by alphagov/government-frontend#3074
Closed

Review usage of the error-message component #3488

MartinJJones opened this issue Jul 6, 2023 · 2 comments · Fixed by alphagov/government-frontend#3074
Assignees
Labels
accessibility Accessibility issues identified

Comments

@MartinJJones
Copy link
Contributor

What

Remove the error-message component used in Government Frontend and replace with the error-message component from the gem.

Why

Although they look the same, the components do have different functionality. The form error-message component is based off the design system and includes the Accessibility enhancements below:

To help screen reader users, the error message component includes a hidden ‘Error:’ before the error message. These users will hear, for example, “Error: The date your passport was issued must be in the past”. - https://design-system.service.gov.uk/components/error-message/

<span class="govuk-visually-hidden">Error:</span> Please enter your National Insurance Number

Screenshots

Publishing component Government Frontend
error-message-government-frontend error-message-government-frontend
@MartinJJones MartinJJones added the accessibility Accessibility issues identified label Jul 6, 2023
@jon-kirwan jon-kirwan self-assigned this Sep 14, 2023
@jon-kirwan
Copy link
Contributor

It looks like the error message app component is only included in one view (in Government Frontend) choose_sign_in.html.

From what I can tell the choose sign in page is no longer used since it contains an option for GOV.UK Verify which is now closed. Previously, I think, you would get to this page from https://www.gov.uk/log-in-file-self-assessment-tax-return. Now the sign in link takes you user to a page to sign in using Government Gateway.

See: link to screenshot of sign in page copied from alphagov/government-frontend#610.

@jon-kirwan
Copy link
Contributor

On further investigation, I've found that the choose sign in page is still in use, although only for one service, https://www.gov.uk/claim-rural-payments/sign-in/prove-identity. From what I've read it seems likely that once services fully shift from Government Gateway to One Login, it will no longer be needed. However, until that happens, it seems like a good idea to replace the component.

More information here - Slack.

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

Successfully merging a pull request may close this issue.

2 participants