Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(changeset): shared announcer regions can match an app's getByRole('status') queries (#8354)

Cindy Zhang382d31249671
diff --git a/.changeset/announcer-role-query.md b/.changeset/announcer-role-query.md
new file mode 100644
index 0000000000..2837147a96
--- /dev/null
+++ b/.changeset/announcer-role-query.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] EmptyState now announces through the page's shared announcer regions, a visually hidden `role="status"` (polite) and `role="alert"` (assertive) pair that Astryx mounts once on `document.body`. In tests, a query such as `getByRole('status')` or `getByRole('alert')` can therefore match one of these regions rather than your component. Scope the query to your component with `within(container)`.
+
+@cixzhang