Skip to content

Commit

Permalink
Update fundamental docs guidelines links to url links
Browse files Browse the repository at this point in the history
  • Loading branch information
JDMathew committed Aug 9, 2024
1 parent c33eb82 commit 3499f72
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions website/docs/ama/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const App = () => {

## Example

In the following Example the navigation animation are disabled when the user enables the [Reduce Motion](../guidelines/animations) setting.
In the following Example the navigation animation are disabled when the user enables the [Reduce Motion](/guidelines/animations) setting.

It also shows how to build a more accessible [form](../guidelines/forms) using the built-in components.
It also shows how to build a more accessible [form](/guidelines/forms) using the built-in components.

```jsx
import * as React from 'react';
Expand Down Expand Up @@ -156,7 +156,7 @@ export const HomeScreen = () => {
<Pressable
onPress={handleOnSubmit}
accessibilityLabel="Submit"
accessibiltiyRole="button"
accessibilityRole="button"
>
<Text>Submit</Text>
</Pressable>
Expand Down
5 changes: 2 additions & 3 deletions website/guidelines/accessibility-label.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ This is especially crucial for icon-only buttons, where the control lacks textua
<Pressable
onPress={contactUs}
accessibilityRole="button"
accessibilityLabel="Contact us"
>
accessibilityLabel="Contact us">
Contact us
</Pressable>
```
Expand Down Expand Up @@ -158,7 +157,7 @@ This is used when a component has the `accessibilityLabel` prop in all caps.

:::tip

Is it possible to specify a list of allowed all caps accessibility labels, [more info here](../guidelines/guidelines.md)
Is it possible to specify a list of allowed all caps accessibility labels, [more info here](/guidelines/guidelines.md)
:::

## Related AMA components
Expand Down
2 changes: 1 addition & 1 deletion website/guidelines/pour.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ We must ensure the app is compatible with assistive technologies, including keyb
- The app should be fully functional through keyboard inputs
- [Users should be given ample time to complete tasks](/guidelines/timed-actions)
- [The app should be designed in a way that minimizes the risk of triggering seizures or other involuntary reactions](/guidelines/animations)
- [Focus order](../guidelines/focus), screen titles, [headings](/guidelines/headings), and [labels](/guidelines/accessibility-label) should be clearly defined to facilitate easy navigation
- [Focus order](/guidelines/focus), screen titles, [headings](/guidelines/headings), and [labels](/guidelines/accessibility-label) should be clearly defined to facilitate easy navigation
- The app should offer appropriately [sized touch targets](/guidelines/minimum-size) and alternative input methods

## Understandable
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.7.x/introduction/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const HomeScreen = () => {
<Pressable
onPress={handleOnSubmit}
accessibilityLabel="Submit"
accessibiltiyRole="button"
accessibilityRole="button"
>
<Text>Submit</Text>
</Pressable>
Expand Down

0 comments on commit 3499f72

Please sign in to comment.