defect1722595 Bug 1722595: [Screen readers Azure Cosmos DB Scale& Settings: Screen reader (NVDA) is not announcing status message which is displayed on the screen after radio button is selected under scale tab.

This commit is contained in:
Sampath 2022-12-23 18:39:13 +05:30
parent 6defcfb7e5
commit 610b559469
2 changed files with 22 additions and 11 deletions

View File

@ -1,9 +1,12 @@
import { mergeStyleSets } from "@fluentui/merge-styles";
import {
Checkbox,
ChoiceGroup,
FontIcon,
IChoiceGroupOption,
IColumn,
Icon,
initializeIcons,
Label,
Link,
MessageBar,
@ -82,7 +85,7 @@ interface ThroughputInputAutoPilotV3State {
spendAckChecked: boolean;
exceedFreeTierThroughput: boolean;
}
initializeIcons();
export class ThroughputInputAutoPilotV3Component extends React.Component<
ThroughputInputAutoPilotV3Props,
ThroughputInputAutoPilotV3State
@ -620,13 +623,20 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
if (this.IsComponentDirty().isDiscardable) {
warningMessage = saveThroughputWarningMessage;
}
const classNames = mergeStyleSets({
orange: [{ color: "orange" }],
});
return (
<>
{warningMessage && (
<MessageBar messageBarIconProps={{ iconName: "WarningSolid", className: "messageBarWarningIcon" }}>
// <MessageBar messageBarIconProps={{ iconName: "WarningSolid", className: "messageBarWarningIcon" }}>
// {warningMessage}
// </MessageBar>
<div className="warningonmanual" role="alert" aria-atomic="true">
<Icon iconName="WarningSolid" className={classNames.orange} />
{warningMessage}
</MessageBar>
</div>
)}
</>
);

View File

@ -8,14 +8,15 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
}
}
>
<StyledMessageBar
messageBarIconProps={
Object {
"className": "messageBarWarningIcon",
"iconName": "WarningSolid",
}
}
<div
aria-atomic="true"
className="warningonmanual"
role="alert"
>
<Icon
className="orange-53"
iconName="WarningSolid"
/>
<Text
styles={
Object {
@ -28,7 +29,7 @@ exports[`ThroughputInputAutoPilotV3Component autopilot input visible 1`] = `
>
Your bill will be affected as you update your throughput settings. Please review the updated cost estimate below before saving your changes
</Text>
</StyledMessageBar>
</div>
<Stack>
<StyledLabelBase
id="settingsV2RadioButtonLabelId"