diff --git a/CHANGELOG.md b/CHANGELOG.md
index e14fe8a35e..35d67eb989 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Fixes
- Fix overflowing focus outline for `Grid` items for Teams theme @Bugaa92 ([#1195](https://github.com/stardust-ui/react/pull/1195))
+- Fix routing for accessibility documentation @sophieH29 ([#1208](https://github.com/stardust-ui/react/pull/1208))
### Features
- Add `Embed` and `Video` components @stuartlong ([#1108](https://github.com/stardust-ui/react/pull/1108))
diff --git a/docs/src/views/Accessibility.tsx b/docs/src/views/Accessibility.tsx
index 6cf3657494..ca041d7e17 100644
--- a/docs/src/views/Accessibility.tsx
+++ b/docs/src/views/Accessibility.tsx
@@ -2,6 +2,8 @@ import * as React from 'react'
import DocPage from '../components/DocPage/DocPage'
import CodeSnippet from '../components/CodeSnippet'
import GuidesNavigationFooter from '../components/GuidesNavigationFooter'
+import { Link } from 'react-router-dom'
+
import { code, link } from '../utils/helpers'
import { Header } from '@stardust-ui/react'
@@ -10,56 +12,56 @@ export default () => (
Read more about:
@@ -55,20 +56,21 @@ export default () => ( items, such as list items and menu items. At the same time it is possible to TAB between these navigable components (navigate between Menu and List components by pressing TAB and use arrow keys to navigate between their items).{' '} - {link('Read more about FocusZone.', '/focus-zone')} + Read more about FocusZone.
Type: {code('{ mode: FocusZoneMode, props?: FocusZoneProps }')}.
Type: {code('FocusTrapZoneProps | boolean')}.
Type: {code('AutoFocusZoneProps | boolean')}.
Read more about:
If you need both - grabbing the focus and trap the focus in the component - use{' '} - {link('FocusTrapZone.', '/focus-trap-zone')} + FocusTrapZone.
@@ -34,7 +32,7 @@ export default () => ( {code('FocusTrapZone')}. To enable auto focus for a component, in the behavior set prop{' '} {code('autoFocus')} to {code('true')} with default settings or set an object with desired values for auto focus zone props.{' '} - {link('Read more about Accessibility Behaviors.', '/accessibility-behaviors')} + Read more about Accessibility Behaviors.
{code('AutoFocusZone')}'s props which can be applied in accessibility behavior ( @@ -64,8 +62,7 @@ export default () => (
For example, we want to specify the focusable selector for Popup with auto focus, so on Popup mount, focus will go to the element matched to that selector. For that purpose, we can to - override {code('popupAutoFocusBehavior')} and specify - {code('firstFocusableSelector')} there. + override {code('popupAutoFocusBehavior')} and specify {code('firstFocusableSelector')} there.
Read more about:
{code('AutoFocusZone')} code on{' '}
diff --git a/docs/src/views/FocusTrapZone.tsx b/docs/src/views/FocusTrapZone.tsx
index 2b095fd384..e88fb3941e 100644
--- a/docs/src/views/FocusTrapZone.tsx
+++ b/docs/src/views/FocusTrapZone.tsx
@@ -1,4 +1,5 @@
import * as React from 'react'
+import { Link } from 'react-router-dom'
import { Header } from '@stardust-ui/react'
import DocPage from '../components/DocPage'
import { link, code } from '../utils/helpers'
@@ -9,13 +10,10 @@ export default () => (
Stardust applies focus trap via accessibility behavior, the same way as it's done for{' '}
- {link('FocusZone', '/focus-zone')}. To enable focus trap for component, it is needed, in
- behavior, to set prop {code('trapFocus')} to {code('true')} with default settings or set an
- object with desired values for focus trap zone props.{' '}
- {link('Read more about Accessibility Behaviors.', '/accessibility-behaviors')}
+ FocusZone. To enable focus trap for component, it is needed, in
+ behavior, to set prop {code('trapFocus')} to
+ {code('true')} with default settings or set an object with desired values for focus trap zone
+ props. Read more about Accessibility Behaviors.{' '}
Currently, it is used for Popup via {code('popupFocusTrapBehavior')} and Dialog via{' '}
{code('dialogBehavior')}.
Read more about:
{code('FocusTrapZone')} code on{' '}
diff --git a/docs/src/views/FocusZone.tsx b/docs/src/views/FocusZone.tsx
index 5fc17d14ff..d57be93898 100644
--- a/docs/src/views/FocusZone.tsx
+++ b/docs/src/views/FocusZone.tsx
@@ -1,4 +1,5 @@
import * as React from 'react'
+import { Link } from 'react-router-dom'
import { Header } from '@stardust-ui/react'
import CodeSnippet from '../components/CodeSnippet'
@@ -9,15 +10,15 @@ export default () => (
@@ -75,7 +76,7 @@ export default () => (
The accessibility behavior can control the focus zone operation by specifying Focus zone's
@@ -144,13 +145,13 @@ export default () => (
See an example of {link('horizontal menu', '/components/menu#types-menu')}. See an example of {link('horizontal menu', 'components/menu#types-menu')}.
See an example of{' '}
- {link('vertical menu', '/components/menu#variations-vertical-pointing')}.
+ {link('vertical menu', 'components/menu#variations-vertical-pointing')}.
@@ -177,7 +178,7 @@ export default () => (
See an example of {link('tab list', '/components/menu#usages-tab-list')}. See an example of {link('tab list', 'components/menu#usages-tab-list')}. Default: {code('false')} Type: {code('boolean')} For example, {link('horizontal menu', '/components/menu#types-menu')}. For example, {link('horizontal menu', 'components/menu#types-menu')}. Read more about:
{code('FocusZone')} code on{' '}
-
-
-
-
@@ -243,7 +244,7 @@ export default () => (
user attempts to naviagate before the first target.
-