Skip to content

Commit

Permalink
fix: Accessibility example typos (#34559)
Browse files Browse the repository at this point in the history
Summary:
While working on #34552 I noticed that a couple of words inside the Accessibility example files were misspelled.

## Changelog

[Internal] [Fixed] - Fix accessibility example typos

Pull Request resolved: #34559

Test Plan: Shouldn't require much testing as this is just fixing some typos inside Accessibility example

Reviewed By: cipolleschi

Differential Revision: D39252742

Pulled By: jacdebug

fbshipit-source-id: 0d3860f438c55d58d0816b9ae65e52925864c8d3
  • Loading branch information
gabrieldonadel authored and facebook-github-bot committed Sep 5, 2022
1 parent 12e5842 commit 1dd74db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class AccessibilityAndroidExample extends React.Component<
<Text style={styles.paragraph}>
In the following example, the words "test", "inline links", "another
link", and "link that spans multiple lines because the text is so
long", should each be independantly focusable elements, announced as
long", should each be independently focusable elements, announced as
their content followed by ", Link".
</Text>
<Text style={styles.paragraph}>
Expand All @@ -162,7 +162,7 @@ class AccessibilityAndroidExample extends React.Component<
</Text>
<Text style={styles.paragraph}>
Focusing on the paragraph itself should also announce that there are
"links avaialable", and opening Talkback's links menu should show
"links available", and opening Talkback's links menu should show
these same links.
</Text>
<Text style={styles.paragraph}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AccessibilityExample extends React.Component<{}> {
</View>
</RNTesterBlock>

<RNTesterBlock title="Accessible view with TextViews wihout label">
<RNTesterBlock title="Accessible view with TextViews without label">
<View accessible={true}>
<Text style={{color: 'green'}}>This is text one.</Text>
<Text style={{color: 'blue'}}>This is text two.</Text>
Expand Down Expand Up @@ -754,15 +754,15 @@ class AccessibilityActionsExample extends React.Component<{}> {
onAccessibilityAction={event => {
switch (event.nativeEvent.actionName) {
case 'activate':
Alert.alert('Alert', 'Activate accessiblity action');
Alert.alert('Alert', 'Activate accessibility action');
break;
case 'copy':
Alert.alert('Alert', 'copy action success');
break;
}
}}
onPress={() => Alert.alert('Button has been pressed!')}
title="Button with accessiblity action"
title="Button with accessibility action"
/>
</RNTesterBlock>

Expand All @@ -776,7 +776,7 @@ class AccessibilityActionsExample extends React.Component<{}> {
onAccessibilityAction={event => {
switch (event.nativeEvent.actionName) {
case 'activate':
Alert.alert('Alert', 'Activate accessiblity action');
Alert.alert('Alert', 'Activate accessibility action');
break;
case 'copy':
Alert.alert('Alert', 'copy action success');
Expand All @@ -800,7 +800,7 @@ function SliderAccessibilityExample(): React.Node {
<Slider value={25} maximumValue={100} minimumValue={0} disabled />
</RNTesterBlock>
<RNTesterBlock
title="Disabled Slider via accessibiltyState"
title="Disabled Slider via accessibilityState"
description="Verify with TalkBack/VoiceOver announces Slider as disabled">
<Slider
value={75}
Expand Down

0 comments on commit 1dd74db

Please sign in to comment.