question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication error messages are not accessible to assistive devices

See original GitHub issue

Describe the bug The “toast” component used for displaying authentication error messages, such as “Username cannot be empty”, lacks sufficient markup to achieve an accessible experience for assistive device users, such as screen readers. Additionally, there is no built-in way to create a custom error message component to create a more accessible experience. For projects that are required to be Section 508 or ADA compliant, which is most websites, this is a big deal and prevents developers from using the Amplify UI components.

To Reproduce Some tips for doing an accessibility review are available here. (I assume/hope AWS has accessibility experts to help reproduce and address this further).

Expected behavior

The exact solution varies, but in general:

  • Move the focus to the first form control that has the error or move the focus to the common error message. Ensure a screen reader is alerted to this new content.
  • Add inline error messages to form fields
  • Associate the inline errors with form fields by using the aria-describedby attribute

WCAG 2.0 specifies the following guidelines for accessible form validation and error identification:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ashika01commented, Apr 6, 2020

@sawyerh : Thank you for reporting. We are aware of this. We have a task to do accessibility audit and update the components.

0reactions
ErikCHcommented, Nov 5, 2021

I’ll close this now. Please reopen it if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication error messages are not accessible to assistive ...
An issue or a feature-request for an Authenticator UI Component · Something isn't working · Issue is pending response from the issue requestor....
Read more >
How to Provide Accessible Form Error Identification
Overview. This post covers the basics of providing accessible form error identification to users with disabilities. Accessible error identification in ...
Read more >
What MobileIron error messages mean - Weill Cornell Medicine
You may receive an error message from MobileIron indicating that your device is not functioning normally. If so, you can check out the...
Read more >
Custom error messages for AD FS sign-in page - Microsoft Learn
To customize the device authentication error message, use the following Windows PowerShell cmdlet and syntax. PowerShell
Read more >
Troubleshooting mobile single sign-on (SSO) errors - IBM
The device does not have the correct MDM policy. · Check the MaaS360 MDM profile on your mobile device. · Open the General...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found