From 16e567df5771b5a5b48db0042a171e00fe877040 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sun, 22 Feb 2026 21:33:07 +0100 Subject: [PATCH] fix(a11y): enhance accessibility for chat settings components (#21715) This commit adds aria-labels to the text inputs and textareas that previously lacked them, applies role=switch to inputs, and adds accessible titles to floating quick actions. --- src/lib/components/chat/Settings/Account.svelte | 9 +++++++++ src/lib/components/chat/Settings/Audio.svelte | 12 ++++++++++++ src/lib/components/chat/Settings/Connections.svelte | 1 + src/lib/components/chat/Settings/General.svelte | 3 +++ .../ManageFloatingActionButtonsModal.svelte | 4 ++++ .../Interface/ManageImageCompressionModal.svelte | 4 ++-- .../components/chat/Settings/SyncStatsModal.svelte | 1 + src/lib/components/common/Textarea.svelte | 2 ++ 8 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index 94c03a79aa..e0dc1407f2 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -150,6 +150,7 @@ class="w-full text-sm dark:text-gray-300 bg-transparent outline-hidden" type="text" bind:value={name} + aria-label={$i18n.t('Name')} required placeholder={$i18n.t('Enter your name')} /> @@ -164,6 +165,7 @@ className="w-full text-sm dark:text-gray-300 bg-transparent outline-hidden" minSize={60} bind:value={bio} + ariaLabel={$i18n.t('Bio')} placeholder={$i18n.t('Share your background and interests')} /> @@ -176,6 +178,7 @@ @@ -232,6 +237,7 @@ class="w-full text-sm outline-hidden" type="url" placeholder={$i18n.t('Enter your webhook URL')} + aria-label={$i18n.t('Notification Webhook')} bind:value={webhookUrl} required /> @@ -273,6 +279,7 @@