ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.11k stars 13.5k forks source link

fix(input, textarea): ensure screen readers announce helper and error text when focused #29958

Closed thetaPC closed 4 weeks ago

thetaPC commented 1 month ago

Issue number: internal


What is the current behavior?

Screen readers do not announce helper and error text when user is focused on the input or textarea. This does not align with the accessibility guidelines.

What is the new behavior?

Does this introduce a breaking change?

Other information

How to test:

  1. Navigate to the input page on the main branch
  2. Turn on the screen reader of your choice
  3. Notice that the screen reader does not announce the helper or error text when the input is focused
  4. Navigate to the input page on the ROU-11274 branch
  5. Turn on the screen reader of your choice
  6. Verify that the screen reader announces the helper or error text when the input is focused on
  7. Navigate to the textarea page on the main branch
  8. Repeat steps 2-3
  9. Navigate to the textarea page on the ROU-11274 branch
  10. Repeat steps 5-6

Known Webkit issues: This fix will not work on macOS 16 and 17 as VoiceOver will not read any text using aria-describedby. Works fine on macOS 18.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:30pm