mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: screen readers announce notifications such as copy confirmations (#32634)
This commit is contained in:
parent
c9936e81ec
commit
a06fed0ad8
1 changed files with 20 additions and 18 deletions
|
|
@ -1515,21 +1515,23 @@
|
|||
<SyncStatsModal bind:show={showSyncStatsModal} eventData={syncStatsEventData} />
|
||||
{/if}
|
||||
|
||||
<Toaster
|
||||
theme={$theme.includes('dark')
|
||||
? 'dark'
|
||||
: $theme === 'system'
|
||||
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
? 'dark'
|
||||
: 'light'
|
||||
: 'light'}
|
||||
richColors
|
||||
position="top-right"
|
||||
closeButton
|
||||
toastOptions={{
|
||||
classes: {
|
||||
closeButton:
|
||||
'!bg-white/80 !text-gray-500 !border-gray-200 hover:!bg-gray-50 hover:!text-gray-700 dark:!bg-gray-850 dark:!text-gray-400 dark:!border-gray-700 dark:hover:!bg-gray-800 dark:hover:!text-gray-200'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<div aria-live="polite">
|
||||
<Toaster
|
||||
theme={$theme.includes('dark')
|
||||
? 'dark'
|
||||
: $theme === 'system'
|
||||
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
? 'dark'
|
||||
: 'light'
|
||||
: 'light'}
|
||||
richColors
|
||||
position="top-right"
|
||||
closeButton
|
||||
toastOptions={{
|
||||
classes: {
|
||||
closeButton:
|
||||
'!bg-white/80 !text-gray-500 !border-gray-200 hover:!bg-gray-50 hover:!text-gray-700 dark:!bg-gray-850 dark:!text-gray-400 dark:!border-gray-700 dark:hover:!bg-gray-800 dark:hover:!text-gray-200'
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue