From f3fc91a3e778b6d51e08ad2332f3e01967b4bf66 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sun, 5 Oct 2025 19:52:52 +0200 Subject: [PATCH] Added "jump to content" accessibility button/skip-link --- src/Resources/Views.Shared._Layout.de.resx | 3 +++ src/Views/Shared/_Layout.cshtml | 5 +++-- src/Views/Shared/_Layout.cshtml.css | 11 +++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/Resources/Views.Shared._Layout.de.resx b/src/Resources/Views.Shared._Layout.de.resx index ded0725..50341bd 100644 --- a/src/Resources/Views.Shared._Layout.de.resx +++ b/src/Resources/Views.Shared._Layout.de.resx @@ -13,6 +13,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, ... + + Zum Inhalt springen + Startseite diff --git a/src/Views/Shared/_Layout.cshtml b/src/Views/Shared/_Layout.cshtml index a3b7f98..6a52d0d 100644 --- a/src/Views/Shared/_Layout.cshtml +++ b/src/Views/Shared/_Layout.cshtml @@ -14,6 +14,7 @@
-
+
@RenderBody()
diff --git a/src/Views/Shared/_Layout.cshtml.css b/src/Views/Shared/_Layout.cshtml.css index c187c02..0f2f088 100644 --- a/src/Views/Shared/_Layout.cshtml.css +++ b/src/Views/Shared/_Layout.cshtml.css @@ -46,3 +46,14 @@ button.accept-policy { white-space: nowrap; line-height: 60px; } + +.skip-link { + position: fixed; + left: -10000px; + z-index: 1000; +} +.skip-link:focus { + left: 10px; + top: 10px; + outline: none; +}