Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support grouped focus for switch (#40739)
Summary: Pull Request resolved: #40739 Adding support for grouped accessibility focus on switch. This is when the switch itself shouldn't be directly focusable. Instead, the parent element should be focusable, including announcing the switch role and state changes, e.g. "on" and "off". Fix this issue in a couple ways: 1. Make sure to set the proper role for switch in FbReactSwitchCompat.java. 2. Set the state description in SwitchCompat.java so that uses the correct announcement of "off" and "on" instead of "checked" and "unchecked". Reviewed By: blavalla Differential Revision: D50068169 fbshipit-source-id: 0c4133377f7a29da9cadb730399bdbedd58c26ae
- Loading branch information