From 2cd11b7d331dc50cc63995d8c792204cbbeafd79 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Fri, 21 Oct 2022 10:45:00 -0700 Subject: [PATCH] TreeView: Add aria-atomic attribute to live region (#2465) * Add aria-atomic attr to live region * Create brave-melons-leave.md --- .changeset/brave-melons-leave.md | 5 +++++ src/TreeView/TreeView.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/brave-melons-leave.md diff --git a/.changeset/brave-melons-leave.md b/.changeset/brave-melons-leave.md new file mode 100644 index 00000000000..fb51210bef2 --- /dev/null +++ b/.changeset/brave-melons-leave.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +TreeView: Add aria-atomic attribute to live region diff --git a/src/TreeView/TreeView.tsx b/src/TreeView/TreeView.tsx index 77e0ead2943..3ea37f1bb4a 100644 --- a/src/TreeView/TreeView.tsx +++ b/src/TreeView/TreeView.tsx @@ -81,7 +81,7 @@ const Root: React.FC = ({'aria-label': ariaLabel, 'aria-labelledb return ( <> - + {ariaLiveMessage}