Added a11y state description to ToggleButton on Android
This CL updates the behavior of ToggleButton on Android. With this change, the state of a ToggleButton ("On"/"Off") will now be read during swipe navigation when a node is initially selected. Until now the state of the toggle button has only been announced during a toggle action. We append the state of the Toggle in the stateDescription element of the node's corresponding AccessibilityNodeInfo object. This CL also updates associated unit test expectations. AX-Relnotes: ToggleButtons on Android now explicitly announce their state. Bug: 1121743 Change-Id: Iaa25379fa9c478c6c96c9a58d99495a8a8fe978f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2432211Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:
Mark Schillaci <mschillaci@google.com> Reviewed-by:
danakj <danakj@chromium.org> Commit-Queue: Mark Schillaci <mschillaci@google.com> Cr-Commit-Position: refs/heads/master@{#811759}
Showing
Please register or sign in to comment