Skip to content

Commit

Permalink
docs(loading-message): added example that highlights aria-live functi…
Browse files Browse the repository at this point in the history
…onality

added example that highlights aria-live functionality

✅ Closes: COMUI-812
  • Loading branch information
daragh-king-genesys committed Feb 12, 2025
1 parent 7bad079 commit b3f5b82
Showing 1 changed file with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,33 @@ <h2>Large</h2>
></gux-radial-progress>
</gux-loading-message>

<style>
<h2>Announced</h2>
<div id="announce"></div>

<style
onload='(function () {
setInterval(() => {
const html = window.toHTML(`
<gux-loading-message>
<div slot="primary-message">The content is loading...</div>
<div slot="additional-guidance">Thank you for waiting.</div>
<gux-radial-progress
slot="progress"
value="1"
max="10"
screenreader-text="loading"
></gux-radial-progress>
</gux-loading-message>
`);
document.getElementById("announce").appendChild(html);
setTimeout(() => {
document.getElementById("announce").innerHTML = "";
}, 5000)
}, 10000);
})()'
>
.resizing {
inline-size: 250px;
overflow: auto;
Expand Down

0 comments on commit b3f5b82

Please sign in to comment.