We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d503fbd commit 7cf66efCopy full SHA for 7cf66ef
ariaNotify-polyfill.js
@@ -186,6 +186,11 @@ if (!("ariaNotify" in Element.prototype)) {
186
*/
187
handleMessage(key = null, message = "") {
188
if (passkey !== key) return;
189
+ // This is a hack due to the way the aria live API works. A screen reader
190
+ // will not read a live region again if the text is the same. Adding a
191
+ // space character tells the browser that the live region has updated,
192
+ // which will cause it to read again, but with no audible difference.
193
+ if (this.#shadowRoot.textContent == message) message += "\u00A0";
194
this.#shadowRoot.textContent = message;
195
}
196
0 commit comments