Merge pull request #13101 from KDSBrowne/bbb-12572
Fix Screen Reader Announcement Of Toasts In Firefox
This commit is contained in:
commit
c375484b66
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user