Sha256: 9e7e14751516ea6a60b2a5d7e9ae8b88f78efd805af5bc5a33bfc37467cbf600
Contents?: true
Size: 553 Bytes
Versions: 44
Compression:
Stored size: 553 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. */ $(() => { const $callout = $('.callout[role="alert"]:first'); if ($callout.length > 0) { 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()} `); }, 500); } });
Version data entries
44 entries across 44 versions & 1 rubygems