Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
MDCSnackbarFoundation.strings.ARIA_LIVE_LABEL_TEXT_ATTR,
this.labelText,
);
setTimeout(() => {
// Allow screen readers to announce changes to the DOM again.
ariaEl.setAttribute('aria-live', priority);
// Remove the message from the ::before pseudo-element.
labelEl.removeAttribute(
MDCSnackbarFoundation.strings.ARIA_LIVE_LABEL_TEXT_ATTR,
);
// Restore the original label text, which will be announced by screen readers.
this.showLabelText = true;
}, MDCSnackbarFoundation.numbers.ARIA_LIVE_DELAY_MS);
},
},