From 9c1dd373a5da347a2325f788c737d9504680e426 Mon Sep 17 00:00:00 2001 From: Ben Basten <45583362+ben-basten@users.noreply.github.com> Date: Sun, 18 Feb 2024 03:34:27 +0000 Subject: [PATCH] feat(web): add skip link to top navigation (#7091) * feat(web): add skip link to top nav * Styling skip link with tailwind --- .../components/elements/buttons/button.svelte | 2 ++ .../elements/buttons/skip-link.svelte | 27 +++++++++++++++++++ .../layouts/user-page-layout.svelte | 1 + .../navigation-bar/navigation-bar.svelte | 2 ++ .../side-bar/side-bar-section.svelte | 1 + 5 files changed, 33 insertions(+) create mode 100644 web/src/lib/components/elements/buttons/skip-link.svelte diff --git a/web/src/lib/components/elements/buttons/button.svelte b/web/src/lib/components/elements/buttons/button.svelte index dccecccd36..31817f206a 100644 --- a/web/src/lib/components/elements/buttons/button.svelte +++ b/web/src/lib/components/elements/buttons/button.svelte @@ -66,6 +66,8 @@ {disabled} {title} on:click + on:focus + on:blur class="{className} inline-flex items-center justify-center transition-colors disabled:cursor-not-allowed disabled:opacity-60 {colorClasses[ color ]} {sizeClasses[size]}" diff --git a/web/src/lib/components/elements/buttons/skip-link.svelte b/web/src/lib/components/elements/buttons/skip-link.svelte new file mode 100644 index 0000000000..457661d65f --- /dev/null +++ b/web/src/lib/components/elements/buttons/skip-link.svelte @@ -0,0 +1,27 @@ + + +