kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
85 stars 23 forks source link

[BUG] Form Field: The error messages below a form-field is never read from a screen reader #3680

Open Fuzzy3 opened 1 month ago

Fuzzy3 commented 1 month ago

Describe the bug

When filling out a form field, an error message appears if it is incorrectly filled out. However when this error message appears it is never read aloud by the screen reader and thus the blind user will never be notified that the form field was incorrectly filled out

More info: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-errormessage

Describe how to reproduce the bug

  1. Find a form using kirby form fields
  2. Turn on screen reader
  3. Tab into kirby input
  4. Type invalid input
  5. Tab away and watch error message appear without the screen reader saying anything

Add any screenshots

image

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: