From e40bc6f481bcb55ae185c3d7008a601241ecbc9a Mon Sep 17 00:00:00 2001
From: Classic298 <27028174+Classic298@users.noreply.github.com>
Date: Mon, 30 Nov 2026 15:27:55 +0100
Subject: [PATCH] fix: screen readers miss the pressed state of rating and read
aloud buttons and the name of three switches (#35291)
After rating a reply, Good Response or Bad Response looks selected, but screen readers announced no state, and Read Aloud gave screen readers no sign that it was reading aloud. These buttons now report whether they are pressed. The enable switch in the tool server dialog, the Global switch in a function's menu and the enable switch in the webhook form were announced only as "switch, on", and now have a name.
Fixes #35290
---
src/lib/components/AddToolServerModal.svelte | 5 ++++-
src/lib/components/admin/Functions/FunctionMenu.svelte | 6 +++++-
src/lib/components/admin/Settings/Events.svelte | 2 +-
src/lib/components/chat/Messages/ResponseMessage.svelte | 3 +++
4 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/lib/components/AddToolServerModal.svelte b/src/lib/components/AddToolServerModal.svelte
index 529813bfa1..5ca6bc16b3 100644
--- a/src/lib/components/AddToolServerModal.svelte
+++ b/src/lib/components/AddToolServerModal.svelte
@@ -696,7 +696,10 @@