Merge pull request #13101 from KDSBrowne/bbb-12572

Fix Screen Reader Announcement Of Toasts In Firefox
This commit is contained in:
Anton Georgiev 2021-08-30 12:13:58 -04:00 committed by GitHub
commit c375484b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,13 +33,13 @@ export function notify(message, type = 'default', icon, options, content, small)
toast.update(
lastToast.id,
{
render: <Toast {...toastProps} />,
render: <div role="alert"><Toast {...toastProps} /></div>,
autoClose: options.autoClose,
...toastProps,
},
);
} else {
const id = toast(<Toast {...toastProps} />, settings);
const id = toast(<div role="alert"><Toast {...toastProps} /></div>, settings);
lastToast = { id, ...toastProps };