feat(web): announce notifications to screen readers (#12071)

This commit is contained in:
Ben
2024-08-27 18:13:17 -04:00
committed by GitHub
parent 98b3441cb1
commit 72ab664936
7 changed files with 46 additions and 14 deletions

View File

@@ -91,6 +91,8 @@
size="20"
padding="2"
on:click={discard}
aria-hidden="true"
tabindex={-1}
/>
</div>
@@ -108,6 +110,8 @@
type="button"
class="{buttonStyle[notification.type]} rounded px-3 pt-1.5 pb-1 transition-all duration-200"
on:click={handleButtonClick}
aria-hidden="true"
tabindex={-1}
>
{notification.button.text}
</button>