Commit 27a28d98780 for woocommerce
commit 27a28d987807a39fdb6a2887ed00879dc67b9856
Author: Luigi Teschio <gigitux@gmail.com>
Date: Mon Sep 28 12:40:21 2026 +0200
Add ARIA roles to block store notices (#69119)
* Add roles to block store notices
* Add changelog entry for store notice roles
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/index.tsx b/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/index.tsx
index 78f5d871405..0f81847a9fa 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/index.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/index.tsx
@@ -53,6 +53,13 @@ const NoticeBanner = ( {
return (
<div
+ role={
+ status === 'error' ||
+ status === 'warning' ||
+ status === 'success'
+ ? 'alert'
+ : 'status'
+ }
className={ clsx(
className,
'wc-block-components-notice-banner',
diff --git a/plugins/woocommerce/client/blocks/changelog/60261-store-notice-roles b/plugins/woocommerce/client/blocks/changelog/60261-store-notice-roles
new file mode 100644
index 00000000000..6eba6e5e97b
--- /dev/null
+++ b/plugins/woocommerce/client/blocks/changelog/60261-store-notice-roles
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Give store notices the appropriate alert or status role for screen readers.