[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:
parent
2c5f4e9666
commit
647cca09b3
|
@ -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>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue