Merge pull request #13431 from KDSBrowne/bbb-network-details-copy-alert

Notify Screen Reader When Network Data Is Copied
This commit is contained in:
Anton Georgiev 2021-10-07 10:20:38 -04:00 committed by GitHub
commit dfdd855725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,8 @@ import Service from '../service';
import Modal from '/imports/ui/components/modal/simple/component';
import { styles } from './styles';
const NETWORK_MONITORING_INTERVAL_MS = 2000;
const NETWORK_MONITORING_INTERVAL_MS = 2000;
const MIN_TIMEOUT = 3000;
const intlMessages = defineMessages({
ariaTitle: {
@ -275,7 +276,7 @@ class ConnectionStatusComponent extends PureComponent {
this.copyNetworkDataTimeout = setTimeout(() => {
copyButton.innerHTML = intl.formatMessage(intlMessages.copy);
}, 1000);
}, MIN_TIMEOUT);
}
renderConnections() {
@ -498,7 +499,7 @@ class ConnectionStatusComponent extends PureComponent {
const { hasNetworkData } = this.state;
return (
<div className={styles.copyContainer}>
<div aria-live="polite" className={styles.copyContainer}>
<span
className={cx(styles.copy, !hasNetworkData ? styles.disabled : '')}
role="button"