Merge pull request #13431 from KDSBrowne/bbb-network-details-copy-alert
Notify Screen Reader When Network Data Is Copied
This commit is contained in:
commit
dfdd855725
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user