Skip to content

Commit

Permalink
Re-implemented skip to main content functionality
Browse files Browse the repository at this point in the history
- Added the "main-content" id to the Box div inside of Main.
- Set the tabIndex to -1 for the Box div inside of Main.
  • Loading branch information
hawkishpolicy committed Sep 5, 2024
1 parent 75c1c25 commit 77f3eaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ export const Layout: React.FC<PropsWithChildren<ContextType>> = ({
setIsFilterDrawerOpen={setIsFilterDrawerOpen}
/>
<Box
id="main-content"
tabIndex={-1}
display="block"
position="relative"
flex="1"
Expand Down

0 comments on commit 77f3eaf

Please sign in to comment.