Ver código fonte

Accessibility: make status notifications accessible (#15004)

* Accessibility: add aria-live to the notification component
factor2
AHMAD KADRI 10 meses atrás
pai
commit
c3c0166731
Nenhuma conta vinculada ao e-mail do autor do commit

+ 2
- 0
react/features/notifications/components/web/Notification.tsx Ver arquivo

@@ -311,6 +311,8 @@ const Notification = ({
311 311
 
312 312
     return (
313 313
         <div
314
+            aria-atomic = 'false'
315
+            aria-live = 'polite'
314 316
             className = { cx(classes.container, unmounting.get(uid ?? '') && 'unmount') }
315 317
             data-testid = { titleKey || descriptionKey }
316 318
             id = { uid }>

Carregando…
Cancelar
Salvar