[accessibility-3560183]:[Screen reader - Cosmos DB Query Copilot - Query Faster with Copilot>Enable Query Advisor]: Screen reader does not announce the dialog information on invoking 'Clear editor' button. (#2068)

Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
This commit is contained in:
SATYA SB 2025-04-30 11:35:58 +05:30 committed by GitHub
parent 2f858ecf9b
commit 9f3236c29c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 3 deletions

View File

@ -22,12 +22,17 @@ export const DeletePopup = ({
}; };
return ( return (
<Modal isOpen={showDeletePopup} styles={{ main: { minHeight: "122px", minWidth: "880px" } }}> <Modal
isOpen={showDeletePopup}
styles={{ main: { minHeight: "122px", minWidth: "880px" } }}
titleAriaId="deleteDialogTitle"
subtitleAriaId="deleteDialogSubTitle"
>
<Stack style={{ padding: "16px 24px", height: "auto" }}> <Stack style={{ padding: "16px 24px", height: "auto" }}>
<Text style={{ height: 24, fontSize: "18px" }}> <Text id="deleteDialogTitle" style={{ height: 24, fontSize: "18px" }}>
<b>Delete code?</b> <b>Delete code?</b>
</Text> </Text>
<Text style={{ marginTop: 10, marginBottom: 20 }}> <Text id="deleteDialogSubTitle" style={{ marginTop: 10, marginBottom: 20 }}>
This will clear the query from the query builder pane along with all comments and also reset the prompt pane This will clear the query from the query builder pane along with all comments and also reset the prompt pane
</Text> </Text>
<Stack horizontal tokens={{ childrenGap: 10 }} horizontalAlign="start"> <Stack horizontal tokens={{ childrenGap: 10 }} horizontalAlign="start">

View File

@ -11,6 +11,8 @@ exports[`Delete Popup snapshot test should not render when showDeletePopup is fa
}, },
} }
} }
subtitleAriaId="deleteDialogSubTitle"
titleAriaId="deleteDialogTitle"
> >
<Stack <Stack
style={ style={
@ -21,6 +23,7 @@ exports[`Delete Popup snapshot test should not render when showDeletePopup is fa
} }
> >
<Text <Text
id="deleteDialogTitle"
style={ style={
{ {
"fontSize": "18px", "fontSize": "18px",
@ -33,6 +36,7 @@ exports[`Delete Popup snapshot test should not render when showDeletePopup is fa
</b> </b>
</Text> </Text>
<Text <Text
id="deleteDialogSubTitle"
style={ style={
{ {
"marginBottom": 20, "marginBottom": 20,
@ -89,6 +93,8 @@ exports[`Delete Popup snapshot test should render when showDeletePopup is true 1
}, },
} }
} }
subtitleAriaId="deleteDialogSubTitle"
titleAriaId="deleteDialogTitle"
> >
<Stack <Stack
style={ style={
@ -99,6 +105,7 @@ exports[`Delete Popup snapshot test should render when showDeletePopup is true 1
} }
> >
<Text <Text
id="deleteDialogTitle"
style={ style={
{ {
"fontSize": "18px", "fontSize": "18px",
@ -111,6 +118,7 @@ exports[`Delete Popup snapshot test should render when showDeletePopup is true 1
</b> </b>
</Text> </Text>
<Text <Text
id="deleteDialogSubTitle"
style={ style={
{ {
"marginBottom": 20, "marginBottom": 20,