fix(a11y): add aria-labels to chat message components (#21708)

Add aria-labels, aria-expanded, and semantic improvements to:
- RateComment: close button, rating scale, feedback textarea
- Citations: toggle button with count, source item buttons
- Source/SourceToken: contextual aria-labels for citation buttons
- StatusHistory: toggle button with expanded state
- WebSearchResults: descriptive favicon alt text
- FollowUps: convert div to button element
- RegenerateMenu: submit suggestion button
- FloatingButtons: action buttons, input field, submit button
- CitationModal: close button

WCAG: 4.1.2 (Name, Role, Value), 2.1.1 (Keyboard), 1.1.1 (Non-text Content)
This commit is contained in:
Classic298 authored and GitHub committed 2026-02-22 14:36:42 -06:00
1 parent d016cc5771
commit 2beeeb90c2
10 files changed
+31 -15

No files matched your search

@@ -130,6 +130,7 @@
</div>
<button
class="self-center"
aria-label={$i18n.t('Close citation modal')}
on:click={() => {
show = false;
}}