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

[#378] Fixed error message with screen reader. #439

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

febdao
Copy link
Collaborator

@febdao febdao commented Dec 1, 2024

Fixed: #378

Jira ticket:

Checklist before requesting a review

  • I have formatted the subject to include the issue number
    as [#123] Verb in past tense with a period at the end.
  • I have provided information in the Changed section about WHY something was
    done if this was a bespoke implementation.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run new and existing relevant tests locally with my changes,
    and they have passed.
  • I have provided screenshots, where applicable.

Changed

  1. Add the aria-describedby attribute to all inputs that may require an error message.
  2. When an input is in an error state, inject the error container with an error message.
  3. Add the aria-invalid attribute to all required fields with a value of "false". Update this to "true" when the input is in an error state.

Screenshots

Screenshot 2024-12-01 at 11 23 16 pm
Screenshot 2024-12-01 at 11 22 41 pm

@febdao febdao added the PR: Needs review Pull request needs a review from assigned developers label Dec 1, 2024
@febdao febdao requested a review from richardgaunt December 1, 2024 12:31
@febdao febdao self-assigned this Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Needs review Pull request needs a review from assigned developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WCAG 1.3.1 A: Error messages not programmatically associated with input (Issue 7)
1 participant