mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-06 03:28:12 -05:00
fix(a11y): every window has a name for screen readers (#33412)
This commit is contained in:
56 files changed
+163
-55
No files matched your search
@@ -19,7 +19,13 @@
|
||||
let voiceInput = false;
|
||||
</script>
|
||||
|
||||
<Modal size="full" containerClassName="" className="h-full bg-white dark:bg-gray-900" bind:show>
|
||||
<Modal
|
||||
ariaLabel={$i18n.t('Add text content')}
|
||||
size="full"
|
||||
containerClassName=""
|
||||
className="h-full bg-white dark:bg-gray-900"
|
||||
bind:show
|
||||
>
|
||||
<div class="absolute top-0 right-0 p-5">
|
||||
<button
|
||||
aria-label={$i18n.t('Close')}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="text-gray-500 dark:text-gray-400">{$i18n.t('Configure')}</span>
|
||||
</button>
|
||||
|
||||
<Modal bind:show size="sm">
|
||||
<Modal ariaLabel={$i18n.t('Avatar setup')} bind:show size="sm">
|
||||
<div class="p-5 text-gray-900 dark:text-gray-100">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<h2 class="text-base font-medium">{$i18n.t('Avatar setup')}</h2>
|
||||
|
||||
@@ -79,7 +79,12 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<Modal bind:show size="md" className="rounded-2xl bg-white dark:bg-gray-900">
|
||||
<Modal
|
||||
ariaLabel={$i18n.t('Import skills')}
|
||||
bind:show
|
||||
size="md"
|
||||
className="rounded-2xl bg-white dark:bg-gray-900"
|
||||
>
|
||||
<div class="flex max-h-[calc(100dvh-3rem)] flex-col text-gray-900 dark:text-gray-100">
|
||||
<div class="flex shrink-0 items-center justify-between gap-3 px-4 pt-3 pb-2">
|
||||
<h2 class="text-sm font-medium">{$i18n.t('Import skills')}</h2>
|
||||
|
||||
@@ -30,7 +30,12 @@
|
||||
export let onChange: (grants: AccessGrant[]) => void | Promise<void> = () => {};
|
||||
</script>
|
||||
|
||||
<Modal size="sm" bind:show className="rounded-2xl bg-white dark:bg-gray-900">
|
||||
<Modal
|
||||
ariaLabel={labels.title ?? $i18n.t('Access Control')}
|
||||
size="sm"
|
||||
bind:show
|
||||
className="rounded-2xl bg-white dark:bg-gray-900"
|
||||
>
|
||||
<div>
|
||||
<div class="flex justify-between dark:text-gray-100 px-4 pt-3 pb-2">
|
||||
<div class="text-sm font-medium self-center">
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<Modal size="sm" bind:show>
|
||||
<Modal ariaLabel={$i18n.t('Add Access')} size="sm" bind:show>
|
||||
<div>
|
||||
<div class="flex justify-between dark:text-gray-100 px-4 pt-3 mb-1">
|
||||
<div class="self-center text-sm font-medium">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
export let manifest = {};
|
||||
</script>
|
||||
|
||||
<Modal size="sm" bind:show>
|
||||
<Modal ariaLabel={$i18n.t('Show your support!')} size="sm" bind:show>
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-gray-300 px-4 pt-3 pb-1">
|
||||
<div class=" text-sm font-medium self-center">{$i18n.t('Show your support!')}</div>
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal size="sm" bind:show>
|
||||
<Modal ariaLabel={$i18n.t('Valves')} size="sm" bind:show>
|
||||
<div>
|
||||
<div class="flex justify-between dark:text-gray-100 px-4 pt-3 pb-1">
|
||||
<div class="self-center text-sm font-medium">{$i18n.t('Valves')}</div>
|
||||
|
||||
Reference in new issue
Block a user