a11y: Skip-Link für Keyboard-Navigation (Redesign Phase D)

- Skip-Link "Zum Inhalt springen" als erstes Element im App-Shell
- .sr-only:focus-visible CSS: sichtbar bei Tab-Focus, fixed top-left

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ulsklyc
2026-03-26 13:37:07 +01:00
parent 8f3f5cce01
commit 73cd322a71
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -145,6 +145,7 @@ async function renderPage(route) {
*/
function renderAppShell(container) {
container.innerHTML = `
<a href="#page-content" class="sr-only">Zum Inhalt springen</a>
<nav class="nav-sidebar" aria-label="Hauptnavigation">
<div class="nav-sidebar__logo"><span>Oikos</span></div>
<div class="nav-sidebar__items" role="list">
+21
View File
@@ -1235,3 +1235,24 @@
content: none;
}
}
/* --------------------------------------------------------
* Skip-Link (sichtbar bei Keyboard-Focus)
* -------------------------------------------------------- */
.sr-only:focus-visible {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: auto;
height: auto;
padding: var(--space-2) var(--space-4);
margin: 0;
clip: auto;
white-space: normal;
overflow: visible;
background: var(--color-accent);
color: #fff;
font-size: var(--text-sm);
border-radius: 0 0 var(--radius-sm) 0;
}