From 88425759c93f85ae71ff3082054f7cddfbec47aa Mon Sep 17 00:00:00 2001 From: Tamas Kovacs Date: Thu, 23 Jan 2025 14:24:27 +0100 Subject: [PATCH] chore: add 'Skip to main content' button to the main page Closes: INSTUI-4240 chore: add 'Skip to main content' button to the main page --- packages/__docs__/src/App/index.tsx | 152 ++++++++++++++++++---- packages/__docs__/src/App/props.ts | 1 + packages/__docs__/src/App/styles.ts | 15 +++ packages/__docs__/src/Hero/index.tsx | 20 ++- packages/__docs__/src/Nav/index.tsx | 43 +++++- packages/__docs__/src/NavToggle/index.tsx | 14 +- packages/__docs__/src/NavToggle/props.ts | 13 +- 7 files changed, 223 insertions(+), 35 deletions(-) diff --git a/packages/__docs__/src/App/index.tsx b/packages/__docs__/src/App/index.tsx index 594d375d4b..66b8066c31 100644 --- a/packages/__docs__/src/App/index.tsx +++ b/packages/__docs__/src/App/index.tsx @@ -28,7 +28,8 @@ import { createContext, LegacyRef, ReactElement, - SyntheticEvent + SyntheticEvent, + createRef } from 'react' import { Alert } from '@instructure/ui-alerts' @@ -106,6 +107,10 @@ class App extends Component { _mediaQueryListener?: ReturnType _defaultDocumentTitle?: string _controller?: AbortController + _heroRef: React.RefObject + _navRef: React.RefObject