-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect accessibilityRole on Switch component #26873
Comments
Summary: `accessibilityRole` communicates the purpose of a component to the user of assistive technology. It needs to have the correct value for it to be fully utilized. Switch component has `accessibilityRole` of a `button` instead of `switch` on default. Change the component default role to `switch`. ## Changelog [General] [Fixed] - Change default `accessibilityRole` of Switch component from `button` to `switch` Pull Request resolved: #26899 Test Plan: - All unit test passed - On Switch component, it's supposed to have `switch` like element type on both platform. (`XCUIElementTypeSwitch` on iOS) fix [#26873 Reviewed By: yungsters Differential Revision: D18002755 Pulled By: mdvacca fbshipit-source-id: 60446f94b23f8355f954805fb4dc08c89d08e492
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Not fixed. Still |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
It appears the Switch component in iOS has an
accessibilityRole
prop of"button"
instead of"switch"
. This became apparent when testing with Appium.React Native version:
Steps To Reproduce
XCUIElementTypeButton
) in Appium DesktopaccessibilityRole
with "switch".XCUIElementTypeSwitch
) in Appium Desktop.Below is a screenshot of the expected result:
I did some investigation myself and it looks like this line and this line are the issue.
The text was updated successfully, but these errors were encountered: