Skip to content

Commit

Permalink
Fix broken inline component links (#2082)
Browse files Browse the repository at this point in the history
* updates Link href paths that link to React components

* adds changeset
  • Loading branch information
mperrotti committed May 19, 2022
1 parent 30f93ff commit 3252b74
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-geese-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Fixes broken links in the documentation
4 changes: 2 additions & 2 deletions docs/content/ActionMenu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ render(
<PropsTablePassthroughPropsRow
elementName="Button"
isPolymorphic
passthroughPropsLink={<Link href="react/Button">Button docs</Link>}
passthroughPropsLink={<Link href="/react/Button">Button docs</Link>}
/>
</PropsTable>

Expand All @@ -346,7 +346,7 @@ render(
<PropsTableRow name="align" type="start | center | end" defaultValue="start" />
<PropsTablePassthroughPropsRow
elementName="Overlay"
passthroughPropsLink={<Link href="react/Overlay">Overlay docs</Link>}
passthroughPropsLink={<Link href="/react/Overlay">Overlay docs</Link>}
/>
</PropsTable>

Expand Down
6 changes: 3 additions & 3 deletions docs/content/AnchoredOverlay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ See also [Overlay positioning](/Overlay#positioning).
name="overlayProps"
type={
<>
Partial&lt;<Link href="/Overlay#props">OverlayProps</Link>&gt;
Partial&lt;<Link href="/react/Overlay#props">OverlayProps</Link>&gt;
</>
}
description={
Expand All @@ -121,7 +121,7 @@ See also [Overlay positioning](/Overlay#positioning).
name="focusTrapSettings"
type={
<>
Partial&lt;<Link href="/focusTrap#focustraphooksettings-interface">FocusTrapHookSettings</Link>&gt;
Partial&lt;<Link href="/react/focusTrap#focustraphooksettings-interface">FocusTrapHookSettings</Link>&gt;
</>
}
description={
Expand All @@ -134,7 +134,7 @@ See also [Overlay positioning](/Overlay#positioning).
name="focusZoneSettings"
type={
<>
Partial&lt;<Link href="/focusZone#focuszonehooksettings-interface">FocusZoneHookSettings</Link>&gt;
Partial&lt;<Link href="/react/focusZone#focuszonehooksettings-interface">FocusZoneHookSettings</Link>&gt;
</>
}
description={
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Autocomplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ render(<MultiSelectAddNewItem />)
isPolymorphic
passthroughPropsLink={
<>
the <Link href="/TextInput">TextInput docs</Link>
the <Link href="/react/TextInput">TextInput docs</Link>
</>
}
/>
Expand Down

0 comments on commit 3252b74

Please sign in to comment.