diff --git a/bigbluebutton-html5/imports/ui/components/notifications-bar/component.jsx b/bigbluebutton-html5/imports/ui/components/notifications-bar/component.jsx index 2e289ca61e312e902217f7951e9e031e72aebba6..04a9e71c6c9dfeed626c6c3d092ec40f527755cc 100644 --- a/bigbluebutton-html5/imports/ui/components/notifications-bar/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/notifications-bar/component.jsx @@ -16,19 +16,13 @@ const defaultProps = { color: 'default', }; -const isTimedAlert = (alertString) => { - // checks if the notification string contains a timer - const endsWithTime = alertString.match(/[0-9]*:[0-9]{2}$/i); - const hasCounter = alertString.match(/[ ][0-9]*[ ]/i); - return !!(hasCounter || endsWithTime); -}; - const NotificationsBar = (props) => { const { color, children } = props; return ( <div - role={isTimedAlert(children) ? '' : 'alert'} + role="alert" + aria-live="off" className={cx(styles.notificationsBar, styles[color])} > {children}