We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The aria-label prop is applied to the enclosing View component of a Switch, which is not an accessible pattern.
aria-label
View
Switch
When the deprecated accessibilityLabel prop is used, it correctly is applied to the native input component, but makes loud deprecation warnings.
accessibilityLabel
input
I would expect an aria-label prop to pass through to the input element, not be placed on the View component.
https://codesandbox.io/s/switch-deprecated-accessibilitylabel-9v6md8?file=/src/App.js
No response
The text was updated successfully, but these errors were encountered:
213b616
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Describe the issue
The
aria-label
prop is applied to the enclosingView
component of aSwitch
, which is not an accessible pattern.When the deprecated
accessibilityLabel
prop is used, it correctly is applied to the nativeinput
component, but makes loud deprecation warnings.Expected behavior
I would expect an aria-label prop to pass through to the input element, not be placed on the
View
component.Steps to reproduce
Test case
https://codesandbox.io/s/switch-deprecated-accessibilitylabel-9v6md8?file=/src/App.js
Additional comments
No response
The text was updated successfully, but these errors were encountered: