From a7c341b70803fe836acf12566c26b02dcf133da6 Mon Sep 17 00:00:00 2001 From: "dave.snider@gmail.com" Date: Fri, 4 May 2018 19:36:48 -0700 Subject: [PATCH] Accessibility/toasts (#780) Make toasts accessibile --- CHANGELOG.md | 1 + .../global_toast_list.test.js.snap | 14 ++++++ .../toast/__snapshots__/toast.test.js.snap | 49 +++++++++++++++++++ src/components/toast/toast.js | 9 +++- 4 files changed, 72 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8358108a9c2..51dc1042ec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ **Bug fixes** +- Added aria-live labeling for `EuiToasts` ([#777](https://github.com/elastic/eui/pull/777)) - Added aria labeling requirements for `EuiBadge` , as well as a generic prop_type function `requiresAriaLabel` in `utils` to check for it. ([#777](https://github.com/elastic/eui/pull/777)) ## [`0.0.46`](https://github.com/elastic/eui/tree/v0.0.46) diff --git a/src/components/toast/__snapshots__/global_toast_list.test.js.snap b/src/components/toast/__snapshots__/global_toast_list.test.js.snap index 5a21bff1824..f161e159e81 100644 --- a/src/components/toast/__snapshots__/global_toast_list.test.js.snap +++ b/src/components/toast/__snapshots__/global_toast_list.test.js.snap @@ -13,11 +13,18 @@ exports[`EuiGlobalToastList props toasts is rendered 1`] = ` class="euiGlobalToastList" >
+

+ A new notification appears +

+

+ A new notification appears +

+ +

+ A new notification appears +

+
+ +

+ A new notification appears +

+
+ +

+ A new notification appears +

+
+ +

+ A new notification appears +

+
+ +

+ A new notification appears +

+
+ +

+ A new notification appears +

+
+

+ A new notification appears +

-
+ +

A new notification appears

+
+ +
{headerIcon}