From 75acb174ec6643230fb3a24d217d67a2807de17b Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 20 Feb 2020 17:13:34 -0600 Subject: [PATCH] fix(Copy): add aria-live to announce text updates (#5386) --- packages/react/src/components/Copy/Copy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/Copy/Copy.js b/packages/react/src/components/Copy/Copy.js index c722ea6f5df8..3741bdc91fe5 100644 --- a/packages/react/src/components/Copy/Copy.js +++ b/packages/react/src/components/Copy/Copy.js @@ -60,7 +60,9 @@ export default function Copy({ onAnimationEnd, handleAnimationEnd, ])} - {...other}> + {...other} + aria-live="polite" + aria-label={animation ? feedback : other['aria-label']}> {children}