Skip to content

Commit

Permalink
fix(live-region-element): update default throttle delay (#48)
Browse files Browse the repository at this point in the history
* fix(live-region-element): update default throttle delay

* Create dull-cats-tap.md
  • Loading branch information
joshblack authored Apr 4, 2024
1 parent ddd5f23 commit e2c8e1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-cats-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/live-region-element": patch
---

Update default throttle delay for announcements from 500ms to 150ms.
2 changes: 1 addition & 1 deletion packages/live-region-element/src/live-region-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Cancel = () => void
/**
* The default delay between messages being announced by the live region
*/
const DEFAULT_THROTTLE_DELAY_MS = 500
const DEFAULT_THROTTLE_DELAY_MS = 150

class LiveRegionElement extends HTMLElement {
/**
Expand Down

0 comments on commit e2c8e1f

Please sign in to comment.