-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added the accessibilityLanguage
prop documentation
#2970
Added the accessibilityLanguage
prop documentation
#2970
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
LGTM, but I think we need to add documentation on Accessibility Properties. Because components that use accessibility actually extend AccessibilityProps to avoid redundancy and developers can also focus on learning about accessibility on the same page. |
docs/accessibility.md
Outdated
@@ -66,6 +66,19 @@ iOS In the above example, VoiceOver will read the hint after the label, if the u | |||
|
|||
Android In the above example, TalkBack will read the hint after the label. At this time, hints cannot be turned off on Android. | |||
|
|||
### `accessibilityLanguage` <div class="label ios">iOS</div> | |||
|
|||
Using the `accessibilityLanguage` property the screen reader will understand which language to use while reading the element's **label**, **value** and **hint**. The provided string value must follow the [BCP 47 specification](https://www.rfc-editor.org/info/bcp47). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By using the accessibilityLanguage
property, the screen reader will ...
^^ I think it will make the sentence easy to read. 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, thank you! 🙂 Added here: 56f6f28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me as well. Just a small suggestion on the accessibility.md
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @dgopsq, thank you for the updates, this LGTM! 👍
Since the 0.68
has been release we can ship those changes now! 🙂
This PR is going to add the
accessibilityLanguage
prop documentation to all the components targeted by the changes of facebook/react-native#33090.I'm not a native english speaker so I'm open to improvements / changes 🙂