Skip to content

Commit 3252b74

Browse files
authored
Fix broken inline component links (#2082)
* updates Link href paths that link to React components * adds changeset
1 parent 30f93ff commit 3252b74

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/empty-geese-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Fixes broken links in the documentation

docs/content/ActionMenu.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ render(
329329
<PropsTablePassthroughPropsRow
330330
elementName="Button"
331331
isPolymorphic
332-
passthroughPropsLink={<Link href="react/Button">Button docs</Link>}
332+
passthroughPropsLink={<Link href="/react/Button">Button docs</Link>}
333333
/>
334334
</PropsTable>
335335

@@ -346,7 +346,7 @@ render(
346346
<PropsTableRow name="align" type="start | center | end" defaultValue="start" />
347347
<PropsTablePassthroughPropsRow
348348
elementName="Overlay"
349-
passthroughPropsLink={<Link href="react/Overlay">Overlay docs</Link>}
349+
passthroughPropsLink={<Link href="/react/Overlay">Overlay docs</Link>}
350350
/>
351351
</PropsTable>
352352

docs/content/AnchoredOverlay.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ See also [Overlay positioning](/Overlay#positioning).
108108
name="overlayProps"
109109
type={
110110
<>
111-
Partial&lt;<Link href="/Overlay#props">OverlayProps</Link>&gt;
111+
Partial&lt;<Link href="/react/Overlay#props">OverlayProps</Link>&gt;
112112
</>
113113
}
114114
description={
@@ -121,7 +121,7 @@ See also [Overlay positioning](/Overlay#positioning).
121121
name="focusTrapSettings"
122122
type={
123123
<>
124-
Partial&lt;<Link href="/focusTrap#focustraphooksettings-interface">FocusTrapHookSettings</Link>&gt;
124+
Partial&lt;<Link href="/react/focusTrap#focustraphooksettings-interface">FocusTrapHookSettings</Link>&gt;
125125
</>
126126
}
127127
description={
@@ -134,7 +134,7 @@ See also [Overlay positioning](/Overlay#positioning).
134134
name="focusZoneSettings"
135135
type={
136136
<>
137-
Partial&lt;<Link href="/focusZone#focuszonehooksettings-interface">FocusZoneHookSettings</Link>&gt;
137+
Partial&lt;<Link href="/react/focusZone#focuszonehooksettings-interface">FocusZoneHookSettings</Link>&gt;
138138
</>
139139
}
140140
description={

docs/content/Autocomplete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ render(<MultiSelectAddNewItem />)
590590
isPolymorphic
591591
passthroughPropsLink={
592592
<>
593-
the <Link href="/TextInput">TextInput docs</Link>
593+
the <Link href="/react/TextInput">TextInput docs</Link>
594594
</>
595595
}
596596
/>

0 commit comments

Comments
 (0)