From 1fb7a5c98a6dbf0aacb4afbc4c204acebcc89cf5 Mon Sep 17 00:00:00 2001 From: Abbey Yacoe Date: Thu, 22 May 2025 15:58:31 +0200 Subject: [PATCH] chore(a11y): add ariaLiveMessage to label config --- examples/react/src/examples/A11y/index.tsx | 2 ++ .../svelte/src/routes/examples/a11y/+page.svelte | 5 ++++- packages/react/src/components/NodeWrapper/index.tsx | 12 ++++++++---- .../lib/components/NodeWrapper/NodeWrapper.svelte | 10 ++++++---- packages/system/src/constants.ts | 2 ++ 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/examples/react/src/examples/A11y/index.tsx b/examples/react/src/examples/A11y/index.tsx index 4cc2cdff..85d959ff 100644 --- a/examples/react/src/examples/A11y/index.tsx +++ b/examples/react/src/examples/A11y/index.tsx @@ -63,6 +63,8 @@ const A11y = () => { 'a11yDescription.node.default': 'Custom Node Desc.', 'a11yDescription.node.keyboardDisabled': 'Custom Keyboard Desc.', 'a11yDescription.edge.default': 'Custom Edge Desc.', + 'a11yDescription.ariaLiveMessage': (node: string, x: number, y: number) => + `Custom Moved selected node ${node}. New position, x: ${x}, y: ${y}`, 'controls.ariaLabel': 'Custom Controls Aria Label', 'controls.zoomin.title': 'Custom Zoom in', 'controls.zoomout.title': 'Custom Zoom Out', diff --git a/examples/svelte/src/routes/examples/a11y/+page.svelte b/examples/svelte/src/routes/examples/a11y/+page.svelte index d4e1d320..4f0ab7b0 100644 --- a/examples/svelte/src/routes/examples/a11y/+page.svelte +++ b/examples/svelte/src/routes/examples/a11y/+page.svelte @@ -15,7 +15,8 @@ position: { x: 0, y: 0 }, data: { label: 'A' }, }, - { id: 'B', position: { x: -100, y: 150 }, data: { label: '