Skip to content

Commit

Permalink
Fix Suggested Actions accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
corinagum committed Dec 11, 2019
1 parent eb750b3 commit dd954f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/component/src/SendBox/SuggestedActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const SuggestedActions = ({ className, suggestedActions = [] }) => {
(suggestedActions.length ? suggestedActionsContentText : suggestedActionsEmptyText);

if (!suggestedActions.length) {
return false;
return (
<div aria-label=" " aria-live="polite" role="status">
<ScreenReaderText text={suggestedActionsContainerText} />
</div>
);
}

const children = suggestedActions.map(({ displayText, image, text, title, type, value }, index) => (
Expand Down

0 comments on commit dd954f8

Please sign in to comment.