chore(a11y): add custom control labels Svelte

This commit is contained in:
Abbey Yacoe
2025-05-21 16:56:35 +02:00
parent 3858d3b08b
commit 6081f687bf
2 changed files with 23 additions and 13 deletions
@@ -29,11 +29,20 @@
</script>
<SvelteFlow bind:nodes bind:edges fitView labelConfig={{
'a11yDescription.node.default': 'Svelte Custom node description',
'a11yDescription.node.keyboardDisabled': 'Svelte Custom keyboard-disabled node description',
'a11yDescription.edge.default': 'Svelte Custom edge description',
}}>
<SvelteFlow
bind:nodes
bind:edges
fitView
labelConfig={{
'a11yDescription.node.default': 'Svelte Custom Node Desc.',
'a11yDescription.node.keyboardDisabled': 'Svelte Custom Keyboard Desc.',
'a11yDescription.edge.default': 'Svelte Custom Edge Desc.',
'controls.zoomin.title': 'Svelte Custom Zoom in',
'controls.zoomout.title': 'Svelte Custom Zoom Out',
'controls.fitview.title': 'Svelte Custom Fit View',
'controls.interactive.title': 'Svelte Custom Toggle Interactivity',
}}
>
<Controls />
<Background />
<MiniMap />