mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
[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:
@@ -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>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user