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
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-30 18:27:55 +04:00
1 parent 2e94968a9a
commit e40bc6f481
4 files changed
+13 -3

No files matched your search

+4 -1
View File
@@ -696,7 +696,10 @@
</Tooltip>
<Tooltip content={enable ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
<Switch bind:state={enable} />
<Switch
bind:state={enable}
ariaLabel={$i18n.t('Toggle whether current connection is active.')}
/>
</Tooltip>
</div>
</div>