Skip to content

Commit

Permalink
Fix links to new docsite (#4159)
Browse files Browse the repository at this point in the history
* Fix links to new docsite

* Revert unintentionally committed change
  • Loading branch information
camertron authored Jan 18, 2024
1 parent b333286 commit 099e915
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion docs/content/ActionList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {LinkIcon, AlertIcon, ArrowRightIcon} from '@primer/octicons-react'
import InlineCode from '@primer/gatsby-theme-doctocat/src/components/inline-code'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/action-list/react'} />
<DeprecationBanner replacementUrl={'/components/action-list/react/latest'} />

<Box sx={{border: '1px solid', borderColor: 'border.default', borderRadius: 2, padding: 6, marginBottom: 3}}>
<ActionList sx={{width: 320}}>
Expand Down
2 changes: 1 addition & 1 deletion docs/content/ActionMenu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import data from '../../src/ActionMenu/ActionMenu.docs.json'
import {Box, Avatar, ActionList, ActionMenu} from '@primer/react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/action-menu/react'} />
<DeprecationBanner replacementUrl={'/components/action-menu/react/latest'} />

<br />

Expand Down
2 changes: 1 addition & 1 deletion docs/content/AnchoredOverlay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import data from '../../src/AnchoredOverlay/AnchoredOverlay.docs.json'

import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/anchored-overlay/react'} />
<DeprecationBanner replacementUrl={'/components/anchored-overlay/react/latest'} />

An `AnchoredOverlay` provides an anchor that will open a floating overlay positioned relative to the anchor.
The overlay can be opened and navigated using keyboard or mouse.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Autocomplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import data from '../../src/Autocomplete/Autocomplete.docs.json'
import {Autocomplete} from '@primer/react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/autocomplete/react'} />
<DeprecationBanner replacementUrl={'/components/autocomplete/react/latest'} />

The `Autocomplete` component is comprised of an `Autocomplete.Input` component that a user types into, and a `Autocomplete.Menu` component that displays the list of selectable values.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import data from '../../src/Avatar/Avatar.docs.json'
import {Avatar, Box} from '@primer/react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/avatar/react'} />
<DeprecationBanner replacementUrl={'/components/avatar/react/latest'} />

```js
import {Avatar} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/AvatarPair.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/AvatarPair
import data from '../../src/AvatarPair/AvatarPair.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/avatar-pair/react'} />
<DeprecationBanner replacementUrl={'/components/avatar-pair/react/latest'} />

```js
import {AvatarPair} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/AvatarStack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import data from '../../src/AvatarStack/AvatarStack.docs.json'
import {AvatarStack} from '@primer/react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/avatar-stack/react'} />
<DeprecationBanner replacementUrl={'/components/avatar-stack/react/latest'} />

```js
import {AvatarStack} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/Box.tsx
import data from '../../src/Box/Box.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/box/react'} />
<DeprecationBanner replacementUrl={'/components/box/react/latest'} />

```js
import {Box} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/BranchName.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/BranchName/BranchName.tsx
import data from '../../src/BranchName/BranchName.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/branch-name/react'} />
<DeprecationBanner replacementUrl={'/components/branch-name/react/latest'} />

```js
import {BranchName} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Breadcrumbs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/Breadcrumbs/Breadcrumbs.ts
import data from '../../src/Breadcrumbs/Breadcrumbs.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/breadcrumbs/react'} />
<DeprecationBanner replacementUrl={'/components/breadcrumbs/react/latest'} />

```js
import {Breadcrumbs} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Use button for the main actions on a page or form.
import data from '../../src/Button/Button.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/button/react'} />
<DeprecationBanner replacementUrl={'/components/button/react/latest'} />

```js
import {Button} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/ButtonGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ storybook: '/react/storybook?path=/story/components-buttongroup--default'
import data from '../../src/ButtonGroup/ButtonGroup.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/button-group/react'} />
<DeprecationBanner replacementUrl={'/components/button-group/react/latest'} />

```js
import {ButtonGroup} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ componentId: checkbox
import data from '../../src/Checkbox/Checkbox.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/checkbox/react'} />
<DeprecationBanner replacementUrl={'/components/checkbox/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/CheckboxGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {CheckboxGroup, Checkbox, Box} from '@primer/components'
import {CheckIcon, XIcon, AlertIcon} from '@primer/octicons-react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/checkbox-group/react'} />
<DeprecationBanner replacementUrl={'/components/checkbox-group/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/CircleBadge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/CircleBadge
import data from '../../src/CircleBadge/CircleBadge.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/circle-badge/react'} />
<DeprecationBanner replacementUrl={'/components/circle-badge/react/latest'} />

```js
import {CircleBadge} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/CounterLabel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/CounterLabel/CounterLabel.
import data from '../../src/CounterLabel/CounterLabel.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/counter-label/react'} />
<DeprecationBanner replacementUrl={'/components/counter-label/react/latest'} />

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ storybook: '/react/storybook/?path=/story/components-details--default'
import data from '../../src/Details/Details.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/details/react'} />
<DeprecationBanner replacementUrl={'/components/details/react/latest'} />

`Details` is a styled `details` element for use with the `useDetails` hook. The `useDetails` hook returns the `open` state, a `setOpen` function to manually change the open state, and **`getDetailsProps` which must be spread onto your `Details` element in order for `Details` to get receive the proper behaviors provided by the hook**. See [Kent Dodd's article on this pattern](https://kentcdodds.com/blog/how-to-give-rendering-control-to-users-with-prop-getters).

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source: https://github.com/primer/react/blob/main/src/Dialog
import data from '../../src/Dialog.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/dialog/react'} />
<DeprecationBanner replacementUrl={'/components/dialog/react/latest'} />

The dialog component is used for all modals. It renders on top of the rest of the app with an overlay.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Flash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/Flash
import data from '../../src/Flash/Flash.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/flash/react'} />
<DeprecationBanner replacementUrl={'/components/flash/react/latest'} />

```js
import {Flash} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/FormControl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
Text,
} from '@primer/react'

<DeprecationBanner replacementUrl={'/design/components/form-control/react'} />
<DeprecationBanner replacementUrl={'/components/form-control/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ componentId: header
import data from '../../src/Header/Header.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/header/react'} />
<DeprecationBanner replacementUrl={'/components/header/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Heading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ componentId: heading
import data from '../../src/Heading/Heading.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/heading/react'} />
<DeprecationBanner replacementUrl={'/components/heading/react/latest'} />

The Heading component will render an html `h2` tag without any default styling. Other heading level elements `h1-h6` are available through use of the `as` prop (see [System Props](/system-props) for additional explanation). Please reference the [w3 recommendations for headings](https://www.w3.org/WAI/tutorials/page-structure/headings/) to ensure your headings provide an accessible experience for screen reader users.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/IconButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: An accessible button component with no text and only icon.
import data from '../../src/Button/IconButton.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/icon-button/react'} />
<DeprecationBanner replacementUrl={'/components/icon-button/react/latest'} />

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Label.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Use Label components to add contextual metadata to a design.
import data from '../../src/Label/Label.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/label/react'} />
<DeprecationBanner replacementUrl={'/components/label/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/LabelGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ componentId: label_group
import data from '../../src/LabelGroup/LabelGroup.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/label-group/react'} />
<DeprecationBanner replacementUrl={'/components/label-group/react/latest'} />

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Link.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ storybook: '/react/storybook/?path=/story/components-link--default'
import data from '../../src/Link/Link.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/link/react'} />
<DeprecationBanner replacementUrl={'/components/link/react/latest'} />

The Link component styles anchor tags with default hyperlink color cues and hover text decoration. `Link` is used for destinations, or moving from one page to another.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/NavList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ storybook: '/react/storybook/?path=/story/components-navlist--simple'
import data from '../../src/NavList/NavList.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/nav-list/react'} />
<DeprecationBanner replacementUrl={'/components/nav-list/react/latest'} />

```js
import {NavList} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Overlay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ storybook: '/react/storybook?path=/story/private-components-overlay--dropdown-ov
import data from '../../src/Overlay/Overlay.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/overlay/react'} />
<DeprecationBanner replacementUrl={'/components/overlay/react/latest'} />

```js
import {Overlay} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/PageLayout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a11yReviewed: true
import data from '../../src/PageLayout/PageLayout.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/page-layout/react'} />
<DeprecationBanner replacementUrl={'/components/page-layout/react/latest'} />

```js
import {PageLayout} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Pagehead.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ status: Alpha
import data from '../../src/Pagehead/Pagehead.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/pagehead/react'} />
<DeprecationBanner replacementUrl={'/components/pagehead/react/latest'} />

```js
import {Pagehead} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import data from '../../src/Pagination/Pagination.docs.json'
import State from '../components/State'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/pagination/react'} />
<DeprecationBanner replacementUrl={'/components/pagination/react/latest'} />

```js
import {Pagination} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/PointerBox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/PointerBox
import data from '../../src/PointerBox/PointerBox.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/pointer-box/react'} />
<DeprecationBanner replacementUrl={'/components/pointer-box/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Popover.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/Popover
import data from '../../src/Popover/Popover.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/popover/react'} />
<DeprecationBanner replacementUrl={'/components/popover/react/latest'} />

```js
import {Popover} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/ProgressBar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/ProgressBar
import data from '../../src/ProgressBar/ProgressBar.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/progress-bar/react'} />
<DeprecationBanner replacementUrl={'/components/progress-bar/react/latest'} />

```js
import {ProgressBar} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Radio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ storybook: '/react/storybook?path=/story/components-forms-radiogroup'
import data from '../../src/Radio/Radio.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/radio/react'} />
<DeprecationBanner replacementUrl={'/components/radio/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/RadioGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {RadioGroup, Radio, Box} from '@primer/components'
import {CheckIcon, XIcon, AlertIcon} from '@primer/octicons-react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/radio-group/react'} />
<DeprecationBanner replacementUrl={'/components/radio-group/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/RelativeTime.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/RelativeTime
import data from '../../src/RelativeTime/RelativeTime.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/relative-time/react'} />
<DeprecationBanner replacementUrl={'/components/relative-time/react/latest'} />

```js
import {RelativeTime} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/SegmentedControl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ storybook: '/react/storybook/?path=/story/components-segmentedcontrol'
import data from '../../src/SegmentedControl/SegmentedControl.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/segmented-control/react'} />
<DeprecationBanner replacementUrl={'/components/segmented-control/react/latest'} />

<Note variant="warning">

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import data from '../../src/Select/Select.docs.json'
import {Select, Text} from '@primer/react'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/select/react'} />
<DeprecationBanner replacementUrl={'/components/select/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/SelectPanel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/SelectPanel
import data from '../../src/SelectPanel/SelectPanel.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/selectpanel/react'} />
<DeprecationBanner replacementUrl={'/components/selectpanel/react/latest'} />

A `SelectPanel` provides an anchor that will open an overlay with a list of selectable items, and a text input to filter the selectable items

Expand Down
2 changes: 1 addition & 1 deletion docs/content/Spinner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/blob/main/src/Spinner/Spinner.tsx
import data from '../../src/Spinner/Spinner.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/spinner/react'} />
<DeprecationBanner replacementUrl={'/components/spinner/react/latest'} />

```jsx live
<Spinner />
Expand Down
2 changes: 1 addition & 1 deletion docs/content/SplitPageLayout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a11yReviewed: true
import data from '../../src/SplitPageLayout/SplitPageLayout.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/split-page-layout/react'} />
<DeprecationBanner replacementUrl={'/components/split-page-layout/react/latest'} />

```js
import {SplitPageLayout} from '@primer/react'
Expand Down
2 changes: 1 addition & 1 deletion docs/content/StateLabel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source: https://github.com/primer/react/tree/main/src/StateLabel
import data from '../../src/StateLabel/StateLabel.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/state-label/react'} />
<DeprecationBanner replacementUrl={'/components/state-label/react/latest'} />

## Examples

Expand Down
2 changes: 1 addition & 1 deletion docs/content/SubNav.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source: https://github.com/primer/react/blob/main/src/SubNav
import data from '../../src/SubNav/SubNav.docs.json'
import DeprecationBanner from '../components/DeprecationBanner'

<DeprecationBanner replacementUrl={'/design/components/subnav/react'} />
<DeprecationBanner replacementUrl={'/components/subnav/react/latest'} />

**Attention:** Make sure to properly label your `SubNav` with an `aria-label` to provide context about the type of navigation contained in `SubNav`.

Expand Down
Loading

0 comments on commit 099e915

Please sign in to comment.