Skip to content

Commit

Permalink
Incorp PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jun 16, 2022
1 parent 48a0af5 commit 1287624
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/component/src/LiveRegion/LiveRegionActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const LiveRegionActivity: VFC<LiveRegionActivityProps> = ({ activity, id }) => {
return activityKey && `webchat__live-region-activity__label-${activityKey}`;
}, [activity, getKeyByActivity]);

// TODO: [P0] Investigate: this section seems to be narrated 2 times by some screen readers.
// TODO: [P0] #4294 Investigate: this section seems to be narrated 2 times by some screen readers.
return (
<article
aria-atomic={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const LiveRegionAttachments: VFC<LiveRegionAttachmentsProps> = ({ activity }) =>

const attachmentForScreenReaderRenderers = attachments
.map(attachment => createAttachmentForScreenReaderRenderer({ activity, attachment }))
.filter(render => render);
.filter(Boolean);

const numGenericAttachments = attachments.length - attachmentForScreenReaderRenderers.length;

Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/SendBox/SuggestedActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const SuggestedActions: FC<SuggestedActionsProps> = ({ className, suggestedActio
const [{ suggestedActionLayout, suggestedActionsStackedLayoutButtonTextWrap }] = useStyleOptions();
const localize = useLocalizer();

// TODO: [P1] Clean up this one so screen reader will narrate something similar to "suggested actions toolbar".
// TODO: [P1] #4315 Clean up this one so screen reader will narrate something similar to "suggested actions toolbar".
const screenReaderText = localize('SUGGESTED_ACTIONS_ALT', '');

const children = suggestedActions.map((cardAction, index) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/Transcript/LiveRegionTranscript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const LiveRegionTranscriptCore: FC<LiveRegionTranscriptCoreProps> = ({ activityE
typistNames[0]
);

// TODO: [P*] We should change the narration to "Message has suggested actions. Press SHIFT + ALT + A to select them."
// TODO: [P1] #4315 We should change the narration to "Message has suggested actions. Press SHIFT + ALT + A to select them."
const liveRegionSuggestedActionsLabelAlt = localize(
'SUGGESTED_ACTIONS_ALT',
accessKey
Expand Down

0 comments on commit 1287624

Please sign in to comment.