Files
descrybe/apps/web/src/lib/components/SkipLink.svelte
T
greeneclipse 8580c996c3 Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
2026-08-09 22:47:43 +02:00

23 lines
576 B
Svelte

<script lang="ts">
import { cn } from "$lib/utils";
import { i18n } from "$lib/i18n";
let {
href = "#main-content",
class: className = ""
}: {
href?: string;
class?: string;
} = $props();
</script>
<a
{href}
class={cn(
"sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-[60] focus:rounded-md focus:bg-background focus:px-3 focus:py-2 focus:text-sm focus:font-medium focus:text-foreground focus:shadow-md focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-ring",
className
)}
>
{i18n.t("a11y.skipToContent")}
</a>