Skip to content

Commit aed55a2

Browse files
docs(components): fix cross-component links in MDX docs (#213)
Closes #212 ## Summary - Convert inline backtick references in Related components sections to proper markdown links (Checkbox, Radio, Switch, TextArea) - Remove erroneously added Related components sections from Divider and Typography
1 parent 069e07d commit aed55a2

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

packages/components/docs/Checkbox.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ Common uses include multi-select lists (inbox, photo picker, contact selection)
9595

9696
## Related components
9797

98-
- `Radio` — for selecting a single option from a mutually exclusive set.
99-
- `Switch` — for toggling a single on/off setting.
98+
- [`Radio`](/components/radio) — for selecting a single option from a mutually exclusive set.
99+
- [`Switch`](/components/switch) — for toggling a single on/off setting.

packages/components/docs/Radio.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ When no visible label is needed, provide `accessibilityLabel` for screen readers
7676

7777
## Related components
7878

79-
- `Checkbox` — for selecting one or more items from a set.
80-
- `Switch` — for toggling a single on/off setting.
79+
- [`Checkbox`](/components/checkbox) — for selecting one or more items from a set.
80+
- [`Switch`](/components/switch) — for toggling a single on/off setting.

packages/components/docs/Switch.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ Also accepts all React Native [`ViewProps`](https://reactnative.dev/docs/view#pr
6868

6969
## Related components
7070

71-
- `Checkbox` — for selecting one or more items from a set.
72-
- `Radio` — for selecting a single option from a mutually exclusive set.
71+
- [`Checkbox`](/components/checkbox) — for selecting one or more items from a set.
72+
- [`Radio`](/components/radio) — for selecting a single option from a mutually exclusive set.

packages/components/docs/TextArea.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ Also accepts all React Native [`TextInputProps`](https://reactnative.dev/docs/te
108108

109109
## Related components
110110

111-
- `TextField` — single-line labelled input with the same field structure.
112-
- `Input` — bare single-line input without label or helper message.
111+
- [`TextField`](/components/textfield) — single-line labelled input with the same field structure.
112+
- [`Input`](/components/input) — bare single-line input without label or helper message.

packages/components/docs/Typography.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const { colors } = useToken()
6060

6161
```tsx
6262
<Typography numberOfLines={2} onPress={handlePress}>
63-
A tappable, truncating paragraph.
63+
A tappable, truncating paragraph.
6464
</Typography>
6565
```
6666

@@ -117,4 +117,3 @@ Both components also accept all React Native [`TextProps`](https://reactnative.d
117117
- For structural headings (such as screen titles), supply `accessibilityRole="header"` on the element.
118118
- All native `Text` accessibility props (`accessibilityLabel`, `accessibilityHint`, etc.) pass through.
119119
- Font scaling follows the OS text-size setting by default; override with `allowFontScaling={false}` if needed.
120-

0 commit comments

Comments
 (0)