Skip to content

Commit

Permalink
TreeView: Add aria-atomic attribute to live region (#2465)
Browse files Browse the repository at this point in the history
* Add aria-atomic attr to live region

* Create brave-melons-leave.md
  • Loading branch information
colebemis authored Oct 21, 2022
1 parent 1f25c90 commit 2cd11b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brave-melons-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

TreeView: Add aria-atomic attribute to live region
2 changes: 1 addition & 1 deletion src/TreeView/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Root: React.FC<TreeViewProps> = ({'aria-label': ariaLabel, 'aria-labelledb
return (
<RootContext.Provider value={{announceUpdate}}>
<>
<VisuallyHidden role="status" aria-live="polite">
<VisuallyHidden role="status" aria-live="polite" aria-atomic="true">
{ariaLiveMessage}
</VisuallyHidden>
<UlBox
Expand Down

0 comments on commit 2cd11b7

Please sign in to comment.