fix: screen readers announce notifications such as copy confirmations (#32634)

This commit is contained in:
G30 2026-10-20 13:57:00 -04:00 • committed by GitHub
parent c9936e81ec
commit a06fed0ad8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>