-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Area:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsBugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
Latest
What is your operating system?
Mac OS
Web browser and version
all
Actual Behavior
The submit-level "invalid credentials" error in LoginForm.tsx (line 108) is missing an aria-live attribute:
{submitError && !modifiedSinceLastSubmit && (
<span className="form-error">
{t('LoginForm.Errors.invalidCredentials')}
</span>
)}Screen readers do not announce this error when it dynamically appears after a failed login. The per-field error in the same file (line 101) already has aria-live="polite" correctly, so this is an inconsistency within the same component.
This violates WCAG 2.2 SC 4.1.3 (Status Messages).
Expected Behavior
The submit error span should include aria-live="assertive" so screen readers announce the login failure:
{submitError && !modifiedSinceLastSubmit && (
<span className="form-error" aria-live="assertive">
{t('LoginForm.Errors.invalidCredentials')}
</span>
)}Steps to reproduce
- Go to the login page
- Use a screen reader (e.g., VoiceOver on macOS)
- Enter invalid credentials and submit the form
- The error appears visually but is not announced by the screen reader
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area:AccessibilityCategory for accessibility related features and bugsCategory for accessibility related features and bugsBugError or unexpected behaviorsError or unexpected behaviors