Sha256: 40c5d9e702d324217616b01a70ecb6a7d9fa266257f9816e602913a601bfbe0b
Contents?: true
Size: 664 Bytes
Versions: 15
Compression:
Stored size: 664 Bytes
Contents
/** * Improves the accessibility of the callout messages for screen readers. Not * all screen readers would announce the callout alert contents after the page * reload without this. */ ((exports) => { exports.$(() => { const $callout = exports.$('.callout[role="alert"]:first'); if ($callout.length > 0) { exports.setTimeout(() => { // The content insertion is to try to hint some of the screen readers // that the alert content has changed and needs to be announced. $callout.attr("tabindex", "0").focus().html(`${$callout.html()} `); // console.log("CALLOUT DONE"); }, 500); } }); })(window);
Version data entries
15 entries across 15 versions & 1 rubygems