fix(core): add role img to edges if not focusable

This commit is contained in:
braks
2023-08-02 22:20:03 +02:00
committed by Braks
parent cee9ff71f0
commit bb1473a688

View File

@@ -141,7 +141,7 @@ const EdgeWrapper = defineComponent({
'tabIndex': props.focusable ? 0 : undefined,
'aria-label': edge.ariaLabel === null ? undefined : edge.ariaLabel || `Edge from ${edge.source} to ${edge.target}`,
'aria-describedby': props.focusable ? `${ARIA_EDGE_DESC_KEY}-${vueFlowId}` : undefined,
'role': props.focusable ? 'button' : undefined,
'role': props.focusable ? 'button' : 'img',
},
[
updating.value