fix(EdgeLabel): fix a11y error in svelte
This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
style:width={toPxString(width)}
|
style:width={toPxString(width)}
|
||||||
style:height={toPxString(height)}
|
style:height={toPxString(height)}
|
||||||
style:z-index={z}
|
style:z-index={z}
|
||||||
role="button"
|
role="group"
|
||||||
|
aria-roledescription="edge label"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
if (selectEdgeOnClick && id) store.handleEdgeSelection(id);
|
if (selectEdgeOnClick && id) store.handleEdgeSelection(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user