Skip to content

Commit

Permalink
Fix Suggested Actions accessibility (#2712)
Browse files Browse the repository at this point in the history
* Fix Suggested Actions accessibility

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
  • Loading branch information
corinagum authored Dec 12, 2019
1 parent c61576d commit 9e43da0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Moved WebSpeechPonyfill patching code from `<BasicTranscript>` to `<Composer>`
- Fixes [#2699](https://github.com/microsoft/BotFramework-WebChat/issues/2699). Disable speech recognition and synthesis when using Direct Line Speech under IE11, in PR [#2649](https://github.com/microsoft/BotFramework-WebChat/pull/2649)
- Fixes [#2709](https://github.com/microsoft/BotFramework-WebChat/issues/2709). Reduce wasted render of activities by memoizing partial result of `<BasicTranscript>`, in PR [#2710](https://github.com/microsoft/BotFramework-WebChat/pull/2710)
- Fixes [#2710](https://github.com/microsoft/BotFramework-WebChat/issues/2710). Suggested actions container should persist for AT, by [@corinagum](https://github.com/corinagum) in PR [#2710](https://github.com/microsoft/BotFramework-WebChat/pull/2710

### Changed

Expand Down
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 9e43da0

Please sign in to comment.