Skip to content

Commit

Permalink
fix(help-text): apply aria-live to ensure full help text is read to user
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Mar 22, 2024
1 parent 7f753bc commit 3e192e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/help-text/src/HelpTextManager.ts
Expand Up @@ -43,7 +43,10 @@ export class HelpTextManager {
// `pass-through-help-text-${this.instanceCount}` makes the slot effectively unreachable from
// the outside allowing the `help-text` slot to be preferred while `negative === false`.
return html`
<div id=${ifDefined(this.isInternal ? this.id : undefined)}>
<div
id=${ifDefined(this.isInternal ? this.id : undefined)}
aria-live="assertive"
>
<slot
name=${negative
? 'negative-help-text'
Expand Down

0 comments on commit 3e192e7

Please sign in to comment.