[accessibility-2724013]: [Screen reader - Cosmos DB - Data Explorer -> Entities -> Add entity]: Screen reader announces incorrect role when focus lands on the "Edit" and "Delete" buttons. (#1923)

Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
This commit is contained in:
SATYA SB 2024-08-09 21:02:10 +05:30 committed by GitHub
parent 2c5f4e9666
commit 647cca09b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -348,8 +348,9 @@ export class NodePropertiesComponent extends React.Component<
as="span"
onActivated={this.setIsDeleteConfirm.bind(this, true)}
aria-label="Delete this vertex"
role="button"
>
<img src={DeleteIcon} alt="Delete" role="button" />
<img src={DeleteIcon} alt="Delete" aria-label="hidden" />
</AccessibleElement>
);
} else {
@ -405,8 +406,9 @@ export class NodePropertiesComponent extends React.Component<
as="span"
aria-label="Edit properties"
onActivated={expandClickHandler}
role="button"
>
<img src={EditIcon} alt="Edit" role="button" />
<img src={EditIcon} alt="Edit" aria-label="hidden" />
</AccessibleElement>
)}