You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
Both the username and password don't have a label. It looks like there is an aria-labelledby, but I can't find an element with that ID when searching the DOM, and F12 accessibility tree shows the accName as empty.
Even if there is an element that aria-labelledby is pointing to, it is probably better to use a real visible label element, as the visual placeholder disappears after some text has been entered (which in this demo there is already prefilled text). This causes usability issues for people with cognitive disabilities.
As an aside, the email/phone input uses input type="email" which isn't correct if it should also accept a phone number. Validation will stop you adding a phone number, and it will tell the screen reader it is only for email addresses.
TL;TR: remove aria-labelledby and add real visable label elementsand for attribute. Change username field to not use type="email"
Both the username and password don't have a label. It looks like there is an aria-labelledby, but I can't find an element with that ID when searching the DOM, and F12 accessibility tree shows the accName as empty.
Even if there is an element that aria-labelledby is pointing to, it is probably better to use a real visible label element, as the visual placeholder disappears after some text has been entered (which in this demo there is already prefilled text). This causes usability issues for people with cognitive disabilities.
As an aside, the email/phone input uses input type="email" which isn't correct if it should also accept a phone number. Validation will stop you adding a phone number, and it will tell the screen reader it is only for email addresses.
TL;TR: remove aria-labelledby and add real visable label elementsand for attribute. Change username field to not use type="email"
@AngeloKai
The text was updated successfully, but these errors were encountered: