feedback: Only read empty text box error once.
This improves on the previous a11y fix in a few ways: 1. It only reads the error text once, as opposed to twice. 2. It indicates to the user that the description is required when they first see it. 3. It marks the description field as "invalid" when the user doesn't fill it out. This change also cleans up the error if the user correctly populates the description field. BUG=chromium:1107656 TEST=Open feedback, ensure chromevox says "required" when first reading\ field. Then, click "send" and ensure focus returns to the text box\ and reads both error message and description. TEST=Artificially induce a later failure in sendReport(), enter text \ in the description textarea, click send, and verify alert is \ cleared. Change-Id: I9f56bb1e0377a04d2c23cf99b6fad012d3a7c4e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2473138 Commit-Queue: Miriam Zimmerman <mutexlox@chromium.org> Reviewed-by:Ian Barkley-Yeung <iby@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#817574}
Showing
Please register or sign in to comment