Skip to content
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

Merged
merged 7 commits into from
Mar 30, 2022

Conversation

dgopsq
Copy link
Contributor

@dgopsq dgopsq commented Feb 16, 2022

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 🙂

@netlify
Copy link

netlify bot commented Feb 16, 2022

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 56f6f28
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/623ce67e52b34800095d7167
😎 Deploy Preview https://deploy-preview-2970--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Simek Simek added 🕐 Waiting on PR These may be waiting for a PR to the facebook/react-native to be merged Wait on future Release This indicates a PR that updates the doc to match a future release. labels Feb 16, 2022
@dgopsq dgopsq marked this pull request as ready for review February 16, 2022 20:34
@PrayaAmadigaPitasa
Copy link

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.

@@ -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).

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. 😃

Copy link
Contributor Author

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

Copy link

@iamrestrepo iamrestrepo left a 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.

@Simek Simek removed the 🕐 Waiting on PR These may be waiting for a PR to the facebook/react-native to be merged label Mar 22, 2022
Copy link
Collaborator

@Simek Simek left a 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! 🙂

@Simek Simek merged commit 4516649 into facebook:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Wait on future Release This indicates a PR that updates the doc to match a future release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants