Skip to content

Commit 91a431c

Browse files
committed
Restore Skip to main content link as first focusable element
1 parent caed96b commit 91a431c

7 files changed

Lines changed: 24 additions & 0 deletions

File tree

application/account/WebApp/shared/translations/locale/da-DK.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,9 @@ msgstr "Tilmeld dig med Google"
12401240
msgid "Signup verification code"
12411241
msgstr "Tilmeldingsbekræftelseskode"
12421242

1243+
msgid "Skip to main content"
1244+
msgstr "Spring til hovedindhold"
1245+
12431246
msgid "SLA"
12441247
msgstr "SLA"
12451248

application/account/WebApp/shared/translations/locale/en-US.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,9 @@ msgstr "Sign up with Google"
12401240
msgid "Signup verification code"
12411241
msgstr "Signup verification code"
12421242

1243+
msgid "Skip to main content"
1244+
msgstr "Skip to main content"
1245+
12431246
msgid "SLA"
12441247
msgstr "SLA"
12451248

application/back-office/WebApp/shared/translations/locale/da-DK.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ msgstr "Vis detaljer"
146146
msgid "Show more"
147147
msgstr "Vis flere"
148148

149+
msgid "Skip to main content"
150+
msgstr "Spring til hovedindhold"
151+
149152
msgid "Something went wrong"
150153
msgstr "Noget gik galt"
151154

application/back-office/WebApp/shared/translations/locale/en-US.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ msgstr "Show details"
146146
msgid "Show more"
147147
msgstr "Show more"
148148

149+
msgid "Skip to main content"
150+
msgstr "Skip to main content"
151+
149152
msgid "Something went wrong"
150153
msgstr "Something went wrong"
151154

application/main/WebApp/shared/translations/locale/da-DK.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,9 @@ msgstr "Enkelt-udfoldning vs multi-udfoldning"
14821482
msgid "Skeleton"
14831483
msgstr "Skelet"
14841484

1485+
msgid "Skip to main content"
1486+
msgstr "Spring til hovedindhold"
1487+
14851488
msgid "Slider (range)"
14861489
msgstr ""
14871490

application/main/WebApp/shared/translations/locale/en-US.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,9 @@ msgstr "Single-expand vs multi-expand"
14821482
msgid "Skeleton"
14831483
msgstr "Skeleton"
14841484

1485+
msgid "Skip to main content"
1486+
msgstr "Skip to main content"
1487+
14851488
msgid "Slider (range)"
14861489
msgstr "Slider (range)"
14871490

application/shared-webapp/ui/components/Sidebar.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ function SidebarProvider({
240240
)}
241241
{...props}
242242
>
243+
{/* Keyboard users can jump past the sidebar to #main-content (set by AppLayout). */}
244+
<Button
245+
render={<a href="#main-content">{t`Skip to main content`}</a>}
246+
className="absolute top-4 left-4 z-[100] -translate-y-[200%] focus-visible:translate-y-0"
247+
/>
248+
243249
{children}
244250
</div>
245251
</TooltipProvider>

0 commit comments

Comments
 (0)