Skip to content

Commit 0a95faf

Browse files
committed
add skip to main content
1 parent 35d1f5e commit 0a95faf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

tools/server/public/index.html.gz

83 Bytes
Binary file not shown.

tools/server/webui/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function AppLayout() {
2828
return (
2929
<>
3030
<Sidebar />
31-
<div
31+
<main
3232
className="drawer-content grow flex flex-col h-screen w-screen mx-auto px-4 overflow-auto bg-base-100"
3333
id="main-scroll"
3434
>
3535
<Header />
3636
<Outlet />
37-
</div>
37+
</main>
3838
{
3939
<SettingDialog
4040
show={showSettings}

tools/server/webui/src/components/Sidebar.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ export default function Sidebar() {
6565
aria-label="Close sidebar"
6666
className="drawer-overlay"
6767
></label>
68+
69+
<a
70+
href="#main-scroll"
71+
className="absolute -left-80 top-0 w-1 h-1 overflow-hidden"
72+
>
73+
Skip to main content
74+
</a>
75+
6876
<div className="flex flex-col bg-base-200 min-h-full max-w-64 py-4 px-4">
6977
<div className="flex flex-row items-center justify-between mb-4 mt-4">
7078
<h2 className="font-bold ml-4" role="heading">

0 commit comments

Comments
 (0)