chore(svelte): add role to EdgeLabel to prevent a11y warnings closes #3841
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user