From 8c7f17cc30afd258a7c225d20fce165f335abcc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9?=
<64154960+JMarques1196@users.noreply.github.com>
Date: Sat, 25 Nov 2023 14:46:20 +0000
Subject: [PATCH] fix: Navigation Bar Accessibility (#196)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* added aria labels to the Navbar
* wrapped
element in
* Update src/layout/Navbar/NavHost.svelte
Co-authored-by: Ushie
* update: wrap - element in
---------
Co-authored-by: oSumAtrIX
Co-authored-by: João André Marques
Co-authored-by: Ushie
---
src/layout/Navbar/NavButton.svelte | 32 ++++++++++++------------------
src/layout/Navbar/NavHost.svelte | 23 +++++++++++----------
src/lib/components/Button.svelte | 5 +++--
3 files changed, 28 insertions(+), 32 deletions(-)
diff --git a/src/layout/Navbar/NavButton.svelte b/src/layout/Navbar/NavButton.svelte
index 8aa305b..9714589 100644
--- a/src/layout/Navbar/NavButton.svelte
+++ b/src/layout/Navbar/NavButton.svelte
@@ -8,6 +8,7 @@
export let href: string;
export let queryKey: null | keyof typeof queries | Array = null;
+ export let label: string;
function prefetch() {
if (queryKey !== null) {
@@ -26,37 +27,30 @@
}
-
+-
+
-
-
-
-
+
+