mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-27 23:59:20 -05:00
fix(a11y): drawers keep keyboard focus inside and are announced as dialogs (#33547)
This commit is contained in:
10 files changed
+77
-39
No files matched your search
@@ -1512,6 +1512,7 @@ ${content}
|
||||
<div class="flex min-h-0 flex-1">
|
||||
<NotePanel
|
||||
bind:show={showNoteTabs}
|
||||
ariaLabel={$i18n.t('Pages')}
|
||||
side="left"
|
||||
panelWidth={280}
|
||||
minWidth={180}
|
||||
@@ -1659,7 +1660,7 @@ ${content}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<NotePanel bind:show={showNoteChat} onClose={closeNotePanel}>
|
||||
<NotePanel bind:show={showNoteChat} ariaLabel={$i18n.t('Chat')} onClose={closeNotePanel}>
|
||||
<div class="flex items-center justify-between px-2 pt-2 pb-1 shrink-0">
|
||||
<div class="flex gap-1 min-w-0 overflow-x-auto scrollbar-hidden">
|
||||
{#each commentsEnabled ? ['Chat', 'Comments'] : ['Chat'] as tab}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
export let storageKey = '';
|
||||
export let floating = false;
|
||||
export let onClose: () => void = () => {};
|
||||
export let ariaLabel: string | undefined = undefined;
|
||||
|
||||
let mediaQuery: MediaQueryList;
|
||||
let largeScreen = false;
|
||||
@@ -36,6 +37,7 @@
|
||||
{#if show}
|
||||
<Drawer
|
||||
{show}
|
||||
{ariaLabel}
|
||||
onClose={() => {
|
||||
show = false;
|
||||
onClose();
|
||||
|
||||
Reference in new issue
Block a user