chore(svelte): add role to EdgeLabel to prevent a11y warnings closes #3841

This commit is contained in:
moklick
2024-02-05 17:23:36 +01:00
parent c797197e41
commit 1aaed8458f
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
- a better NodeResizer (child nodes do not move when parent node gets resized)
- fix `on:panecontextmenu`
- add `role="button"` to `<EdgeLabel />` to prevent a11y warnings
## 0.0.35

View File

@@ -19,6 +19,7 @@
class="svelte-flow__edge-label"
style:transform="translate(-50%, -50%) translate({x}px,{y}px)"
style={'pointer-events: all;' + style}
role="button"
on:click={() => {
if (id) handleEdgeSelect(id);
}}