From 22117e06b54ec8c962169c6a91fb2529a448aee4 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 25 Aug 2024 23:43:28 +0200 Subject: [PATCH] A11y: Buttons do not have an accessible name --- src/lib/components/chat/MessageInput.svelte | 3 +++ src/lib/components/chat/ModelSelector.svelte | 2 ++ src/lib/components/layout/Navbar.svelte | 3 +++ src/routes/(app)/admin/+layout.svelte | 1 + src/routes/(app)/playground/+layout.svelte | 1 + src/routes/(app)/workspace/+layout.svelte | 1 + 6 files changed, 11 insertions(+) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 76f80f364..55daf799b 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -504,6 +504,7 @@ diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index cb80cd2f4..244754d30 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -63,6 +63,7 @@ on:click={() => { selectedModels = [...selectedModels, '']; }} + aria-label="Add Model" > { showSidebar.set(!$showSidebar); }} + aria-label="Toggle Sidebar" >
@@ -111,6 +112,7 @@ on:click={() => { showControls = !showControls; }} + aria-label="Controls" >
@@ -127,6 +129,7 @@ on:click={() => { initNewChat(); }} + aria-label="New Chat" >
{ showSidebar.set(!$showSidebar); }} + aria-label="Toggle Sidebar" >
diff --git a/src/routes/(app)/playground/+layout.svelte b/src/routes/(app)/playground/+layout.svelte index 74579665c..f4e31c0ff 100644 --- a/src/routes/(app)/playground/+layout.svelte +++ b/src/routes/(app)/playground/+layout.svelte @@ -29,6 +29,7 @@ on:click={() => { showSidebar.set(!$showSidebar); }} + aria-label="Toggle Sidebar" >
diff --git a/src/routes/(app)/workspace/+layout.svelte b/src/routes/(app)/workspace/+layout.svelte index f64a783d8..05ab80715 100644 --- a/src/routes/(app)/workspace/+layout.svelte +++ b/src/routes/(app)/workspace/+layout.svelte @@ -39,6 +39,7 @@ on:click={() => { showSidebar.set(!$showSidebar); }} + aria-label="Toggle Sidebar" >