Skip to content

Login submit error message missing aria-live, not announced by screen readers #3874

@Nixxx19

Description

@Nixxx19

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

  1. Go to the login page
  2. Use a screen reader (e.g., VoiceOver on macOS)
  3. Enter invalid credentials and submit the form
  4. The error appears visually but is not announced by the screen reader

Metadata

Metadata

Assignees

Labels

Area:AccessibilityCategory for accessibility related features and bugsBugError or unexpected behaviors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions