feat(a11y): add skip-to-main link and main landmark id

This commit is contained in:
2026-06-20 20:19:27 +02:00
parent ffcf156289
commit a7786f263f
2 changed files with 26 additions and 1 deletions
+24
View File
@@ -780,6 +780,30 @@ body::after {
}
}
.skip-link {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.skip-link:focus-visible {
left: 0;
top: 0;
width: auto;
height: auto;
overflow: visible;
padding: var(--space-2) var(--space-4);
background: var(--color-accent);
color: var(--color-accent-on);
font-family: var(--font-ui);
font-size: var(--text-sm);
font-weight: 600;
text-decoration: none;
z-index: 9999;
}
:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;