From c8f8fa451a60974dfa4ebaf7cd6163ef30c45fd6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 11 Aug 2026 01:25:20 -0600 Subject: [PATCH] a11y Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com> --- src/app.css | 10 +++++++ src/lib/components/NotificationToast.svelte | 2 +- .../calendar/CalendarSidebar.svelte | 6 ++-- .../components/channel/MessageInput.svelte | 2 +- .../channel/Messages/Message.svelte | 9 +++--- .../chat/EmbeddedChatHistoryDropdown.svelte | 2 +- .../chat/EmbeddedChatHistoryItem.svelte | 11 ++++---- .../components/chat/FileNav/PortList.svelte | 2 +- src/lib/components/chat/MessageInput.svelte | 2 +- .../Messages/Markdown/ColonFenceBlock.svelte | 2 +- .../Messages/Markdown/MarkdownTokens.svelte | 2 +- .../Messages/MultiResponseMessages.svelte | 4 +-- .../chat/Messages/OutputEditView.svelte | 2 +- .../chat/Messages/ResponseMessage.svelte | 28 +++++++++---------- .../chat/Messages/UserMessage.svelte | 12 ++++---- src/lib/components/chat/Overview/Node.svelte | 2 +- .../Settings/Account/UserProfileImage.svelte | 12 ++++---- src/lib/components/common/FileItem.svelte | 2 +- src/lib/components/common/Folder.svelte | 5 +++- src/lib/components/common/Image.svelte | 2 +- src/lib/components/layout/Sidebar.svelte | 4 +-- .../layout/Sidebar/ChannelItem.svelte | 8 ++---- .../components/layout/Sidebar/ChatItem.svelte | 21 ++++++++++---- .../components/layout/Sidebar/ChatMenu.svelte | 15 ++++++---- .../layout/Sidebar/PinnedNoteList.svelte | 2 +- .../layout/Sidebar/RecursiveFolder.svelte | 2 +- .../components/layout/Sidebar/Section.svelte | 2 +- src/lib/components/playground/Images.svelte | 4 +-- .../workspace/Models/ModelEditor.svelte | 2 +- 29 files changed, 103 insertions(+), 76 deletions(-) diff --git a/src/app.css b/src/app.css index 93df455113..d315544e0f 100644 --- a/src/app.css +++ b/src/app.css @@ -64,6 +64,16 @@ code { @apply bg-gray-50/40 dark:bg-gray-800/40; } +/* visibility:hidden is not focusable, so a keyboard user could never reveal these */ +.hover-reveal { + @apply opacity-0 pointer-events-none; +} + +.group:hover .hover-reveal, +.group:focus-within .hover-reveal { + @apply opacity-100 pointer-events-auto; +} + .marked a { @apply underline; } diff --git a/src/lib/components/NotificationToast.svelte b/src/lib/components/NotificationToast.svelte index 5862585226..d503f760b8 100644 --- a/src/lib/components/NotificationToast.svelte +++ b/src/lib/components/NotificationToast.svelte @@ -101,7 +101,7 @@ diff --git a/src/lib/components/chat/EmbeddedChatHistoryItem.svelte b/src/lib/components/chat/EmbeddedChatHistoryItem.svelte index 9a1eebf4ba..1abf14b762 100644 --- a/src/lib/components/chat/EmbeddedChatHistoryItem.svelte +++ b/src/lib/components/chat/EmbeddedChatHistoryItem.svelte @@ -22,7 +22,7 @@
@@ -41,9 +41,7 @@
- +
- - +
@@ -1225,7 +1225,7 @@
{$i18n.t('Search')}
- + diff --git a/src/lib/components/layout/Sidebar/ChannelItem.svelte b/src/lib/components/layout/Sidebar/ChannelItem.svelte index 2b6d20c658..834996ef4d 100644 --- a/src/lib/components/layout/Sidebar/ChannelItem.svelte +++ b/src/lib/components/layout/Sidebar/ChannelItem.svelte @@ -203,9 +203,7 @@ {#if ['dm'].includes(channel?.type)} -